#include <device_mixer.h>
Inheritance diagram for audiere::MixerDevice:
Public Member Functions | |
MixerDevice (int rate) | |
OutputStream * | openStream (SampleSource *source) |
OutputStream * | openBuffer (void *samples, int frame_count, int channel_count, int sample_rate, SampleFormat sample_format) |
Protected Member Functions | |
int | read (int sample_count, void *samples) |
Friends | |
class | MixerStream |
Definition at line 25 of file device_mixer.h.
|
Definition at line 14 of file device_mixer.cpp. |
|
Open a single buffer with the specified PCM data. This is sometimes more efficient than streaming and works on a larger variety of audio devices. In some implementations, this may download the audio data to the sound card's memory itself.
Implements audiere::AudioDevice. Definition at line 26 of file device_mixer.cpp. References audiere::OpenBufferStream(), and openStream(). |
|
Open an output stream with a given sample source. If the sample source ever runs out of data, the output stream automatically stops itself. The output stream takes ownership of the sample source, even if opening the output stream fails (in which case the source is immediately deleted).
Implements audiere::AudioDevice. Definition at line 20 of file device_mixer.cpp. References MixerStream. Referenced by openBuffer(). |
|
Definition at line 37 of file device_mixer.cpp. References SYNCHRONIZED. Referenced by audiere::OSSAudioDevice::update(), and audiere::ALAudioDevice::update(). |
|
Definition at line 48 of file device_mixer.h. Referenced by openStream(). |