

Public Methods | |
| ThreadedDevice (AudioDevice *device) | |
| ~ThreadedDevice () | |
| void ADR_CALL | update () |
| OutputStream *ADR_CALL | openStream (SampleSource *source) |
| OutputStream *ADR_CALL | openBuffer (void *samples, int frame_count, int channel_count, int sample_rate, SampleFormat sample_format) |
|
|
Definition at line 137 of file device.cpp. References ADR_GUARD, ADR_LOG, and audiere::AI_CreateThread(). |
|
|
Definition at line 153 of file device.cpp. References audiere::AI_Sleep(). |
|
||||||||||||||||||||||||
|
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 168 of file device.cpp. References ADR_CALL, audiere::hidden::sample_format, and audiere::SampleFormat. |
|
|
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 164 of file device.cpp. References ADR_CALL. |
|
|
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 161 of file device.cpp. References ADR_CALL. |
1.2.17