#include <device_ds.h>
Inheritance diagram for audiere::DSAudioDevice:


Public Methods | |
| 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) |
Static Public Methods | |
| DSAudioDevice * | create (const ParameterList ¶meters) |
| int | Volume_AudiereToDirectSound (float volume) |
| int | Pan_AudiereToDirectSound (float pan) |
Friends | |
| class | DSOutputStream |
|
|
Definition at line 15 of file device_ds.cpp. References ADR_GUARD, ADR_LOG, audiere::ParameterList::getValue(), and audiere::hidden::parameters. |
|
||||||||||||||||||||||||
|
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 199 of file device_ds.cpp. References ADR_GUARD, audiere::GetSampleSize(), audiere::hidden::sample_format, audiere::SampleFormat, and SYNCHRONIZED. |
|
|
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 142 of file device_ds.cpp. References ADR_GUARD, ADR_LOG, DSOutputStream, audiere::SampleSource::getFormat(), audiere::GetSampleSize(), audiere::hidden::sample_format, audiere::SampleFormat, and SYNCHRONIZED. |
|
|
Definition at line 267 of file device_ds.cpp. References Volume_AudiereToDirectSound(). |
|
|
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 126 of file device_ds.cpp. References ADR_GUARD, SYNCHRONIZED, and audiere::DSOutputStream::update(). |
|
|
DirectSound treats volumes and pan levels as decibels (exponential growth like the Richter scale). We want a linear ramp. Do the conversion! Definition at line 258 of file device_ds.cpp. Referenced by Pan_AudiereToDirectSound(). |
|
|
Definition at line 67 of file device_ds.h. Referenced by openStream(). |
1.2.17