|
|
This class implements AudioWriterInterface for the audio device.
AudioDevice (const char* name = "/dev/dsp") |
Constructor.
Parameters:
name | Name of the audio device (normally "/dev/dsp"). |
~AudioDevice () |
Destructor.
inline cardinal getSyncCount () |
Get number of times, sync() has been called.
Returns: Number of times, sync() has been called.
See also: AudioWriterInterface#sync
inline void resetSyncCount () |
Reset number of times, sync() has been called.
See also: AudioWriterInterface#sync
card16 getSamplingRate () |
getSamplingRate() Implementation of AudioQualityInterface.
See also: AudioQualityInterface#getSamplingRate
Reimplemented from AudioQualityInterface
card8 getBits () |
getBits() Implementation of AudioQualityInterface.
See also: AudioQualityInterface#getBits
Reimplemented from AudioQualityInterface
card8 getChannels () |
getChannels() Implementation of AudioQualityInterface.
See also: AudioQualityInterface#getChannels
Reimplemented from AudioQualityInterface
card16 getByteOrder () |
getByteOrder() Implementation of AudioQualityInterface.
See also: AudioQualityInterface#getByteOrder
Reimplemented from AudioQualityInterface
cardinal getBytesPerSecond () |
getBytesPerSecond() Implementation of AudioQualityInterface.
See also: AudioQualityInterface#getBytesPerSecond
Reimplemented from AudioQualityInterface
cardinal getBitsPerSample () |
getBitsPerSample() Implementation of AudioQualityInterface.
See also: AudioQualityInterface#getBitsPerSample
Reimplemented from AudioQualityInterface
card16 setSamplingRate (const card16 samplingRate) |
setSamplingRate() Implementation of AdjustableAudioQualityInterface.
See also: AdjustableAudioQualityInterface#setSamplingRate
Reimplemented from AdjustableAudioQualityInterface
card8 setBits (const card8 bits) |
setBits() Implementation of AdjustableAudioQualityInterface.
See also: AdjustableAudioQualityInterface#setBits
Reimplemented from AdjustableAudioQualityInterface
card8 setChannels (const card8 channels) |
setChannels() Implementation of AdjustableAudioQualityInterface.
See also: AdjustableAudioQualityInterface#setChannels
Reimplemented from AdjustableAudioQualityInterface
card16 setByteOrder (const card16 byteOrder) |
setByteOrder() Implementation of AdjustableAudioQualityInterface.
See also: AdjustableAudioQualityInterface#setByteOrder
Reimplemented from AdjustableAudioQualityInterface
bool ready () |
ready() implementation of AudioWriterInterface
See also: AudioWriterInterface#ready
Reimplemented from AudioWriterInterface
void sync () |
sync() implementation of AudioWriterInterface
See also: AudioWriterInterface#sync
Reimplemented from AudioWriterInterface
bool write (const void* data, const size_t length) |
write() implementation of AudioWriterInterface
See also: AudioWriterInterface#write
Reimplemented from AudioWriterInterface
static const integer TriggerThresholdPercent |
Buffer fill threshold to flush trigger buffer (in percent).
static const integer CutThresholdPercent |
Buffer fill threshold to cut off one fragment of each written block (in percent).