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

See also: AudioWriterInterface#sync

inline void resetSyncCount ()

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

See also: AudioWriterInterface#sync

card16 getSamplingRate ()
[const]

getSamplingRate() Implementation of AudioQualityInterface.

See also: AudioQualityInterface#getSamplingRate

Reimplemented from AudioQualityInterface

card8 getBits ()
[const]

getBits() Implementation of AudioQualityInterface.

See also: AudioQualityInterface#getBits

Reimplemented from AudioQualityInterface

card8 getChannels ()
[const]

getChannels() Implementation of AudioQualityInterface.

See also: AudioQualityInterface#getChannels

Reimplemented from AudioQualityInterface

card16 getByteOrder ()
[const]

getByteOrder() Implementation of AudioQualityInterface.

See also: AudioQualityInterface#getByteOrder

Reimplemented from AudioQualityInterface

cardinal getBytesPerSecond ()
[const]

getBytesPerSecond() Implementation of AudioQualityInterface.

See also: AudioQualityInterface#getBytesPerSecond

Reimplemented from AudioQualityInterface

cardinal getBitsPerSample ()
[const]

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 ()
[const]

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