#include <audiere.h>
Inheritance diagram for audiere::AudioDevice:


Public Methods | |
| virtual void ADR_CALL | update ()=0 |
| virtual OutputStream *ADR_CALL | openStream (SampleSource *source)=0 |
| virtual OutputStream *ADR_CALL | openBuffer (void *samples, int frame_count, int channel_count, int sample_rate, SampleFormat sample_format)=0 |
Protected Methods | |
| ~AudioDevice () | |
This interface is synchronized. update() and openStream() may be called on different threads.
Definition at line 418 of file audiere.h.
|
|
|
|
||||||||||||||||||||||||
|
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.
Implemented in audiere::ThreadedDevice, audiere::DSAudioDevice, audiere::MixerDevice, audiere::NullAudioDevice, and audiere::OALAudioDevice. |
|
|
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).
Implemented in audiere::ThreadedDevice, audiere::DSAudioDevice, audiere::MixerDevice, audiere::NullAudioDevice, and audiere::OALAudioDevice. |
|
|
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. Implemented in audiere::ThreadedDevice, audiere::ALAudioDevice, audiere::DSAudioDevice, audiere::MMAudioDevice, audiere::NullAudioDevice, audiere::OALAudioDevice, and audiere::OSSAudioDevice. |
1.2.17