Public Member Functions | |
ThreadedDevice (AudioDevice *device) | |
~ThreadedDevice () | |
void | update () |
OutputStream * | openStream (SampleSource *source) |
OutputStream * | openBuffer (void *samples, int frame_count, int channel_count, int sample_rate, SampleFormat sample_format) |
const char * | getName () |
void | registerCallback (Callback *callback) |
void | unregisterCallback (Callback *callback) |
void | clearCallbacks () |
Definition at line 266 of file device.cpp.
|
Definition at line 268 of file device.cpp. References ADR_GUARD, ADR_LOG, and audiere::AI_CreateThread(). |
|
Definition at line 287 of file device.cpp. References audiere::AI_Sleep(). |
|
Clears all of the callbacks from the device.
Implements audiere::AudioDevice. Definition at line 323 of file device.cpp. |
|
Gets the name of the audio device. For example "directsound" or "oss".
Implements audiere::AudioDevice. Definition at line 311 of file device.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 302 of file device.cpp. |
|
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 298 of file device.cpp. |
|
Registers 'callback' to receive events. Callbacks can be registered multiple times. Implements audiere::AudioDevice. Definition at line 315 of file device.cpp. |
|
Unregisters 'callback' once. If it is registered multiple times, each unregisterStopCallback call unregisters one of the instances. Implements audiere::AudioDevice. Definition at line 319 of file device.cpp. |
|
Tell the device to do any internal state updates. Some devices update on an internal thread. If that is the case, this method does nothing. Implements audiere::AudioDevice. Definition at line 295 of file device.cpp. |