#include <device_null.h>
Inheritance diagram for audiere::NullAudioDevice:
Public Member Functions | |
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 () |
Static Public Member Functions | |
static NullAudioDevice * | create (const ParameterList ¶meters) |
Friends | |
class | NullOutputStream |
Definition at line 18 of file device_null.h.
|
Definition at line 16 of file device_null.cpp. |
|
Gets the name of the audio device. For example "directsound" or "oss".
Implements audiere::AudioDevice. Definition at line 78 of file device_null.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 64 of file device_null.cpp. References ADR_GUARD, audiere::RefPtr< T >::get(), 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 48 of file device_null.cpp. References ADR_GUARD, NullOutputStream, and SYNCHRONIZED. Referenced by openBuffer(). |
|
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 34 of file device_null.cpp. References ADR_GUARD, and SYNCHRONIZED. |
|
Definition at line 40 of file device_null.h. Referenced by openStream(). |