class AudioDevice

Audio Device. More...

Full nameCoral::AudioDevice
Definition#include <audiodevice.h>
InheritsCoral::AudioWriterInterface [virtual public]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members


Detailed Description

This class implements AudioWriterInterface for the audio device.

 AudioDevice (const char* name = "/dev/dsp")

Constructor.

Parameters:
nameName of the audio device (normally "/dev/dsp").

AudioDevice ()

Destructor.

inline cardinal  getSyncCount ()

[const]

Get number of times, sync() has been called.

Returns: Number of times, sync() has been called.

inline void  resetSyncCount ()

Reset number of times, sync() has been called.

card16  getSamplingRate ()

[const]

getSamplingRate() Implementation of AudioQualityInterface.

Reimplemented from AudioQualityInterface.

card8  getBits ()

[const]

getBits() Implementation of AudioQualityInterface.

Reimplemented from AudioQualityInterface.

card8  getChannels ()

[const]

getChannels() Implementation of AudioQualityInterface.

Reimplemented from AudioQualityInterface.

card16  getByteOrder ()

[const]

getByteOrder() Implementation of AudioQualityInterface.

Reimplemented from AudioQualityInterface.

cardinal  getBytesPerSecond ()

[const]

getBytesPerSecond() Implementation of AudioQualityInterface.

Reimplemented from AudioQualityInterface.

cardinal  getBitsPerSample ()

[const]

getBitsPerSample() Implementation of AudioQualityInterface.

Reimplemented from AudioQualityInterface.

card16  setSamplingRate (const card16 samplingRate)

setSamplingRate() Implementation of AdjustableAudioQualityInterface.

Reimplemented from AdjustableAudioQualityInterface.

card8  setBits (const card8 bits)

setBits() Implementation of AdjustableAudioQualityInterface.

Reimplemented from AdjustableAudioQualityInterface.

card8  setChannels (const card8 channels)

setChannels() Implementation of AdjustableAudioQualityInterface.

Reimplemented from AdjustableAudioQualityInterface.

card16  setByteOrder (const card16 byteOrder)

setByteOrder() Implementation of AdjustableAudioQualityInterface.

Reimplemented from AdjustableAudioQualityInterface.

bool  ready ()

[const]

ready() implementation of AudioWriterInterface

Reimplemented from AudioWriterInterface.

void  sync ()

sync() implementation of AudioWriterInterface

Reimplemented from AudioWriterInterface.

bool  write (const void* data, const size_t length)

write() implementation of AudioWriterInterface

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).