audio
[Interface specifications]


Detailed Description

Audible tone emission / detection (deprecated)
Deprecated:
Use the audiodsp interface instead
The audio interface is used to control sound hardware, if equipped.

#define PLAYER_AUDIO_DATA_BUFFER_SIZE   20
#define PLAYER_AUDIO_COMMAND_BUFFER_SIZE   (3*sizeof(short))
 Command buffer size.
#define PLAYER_AUDIO_PAIRS   5
 Number of frequency / amplitude pairs to report.
typedef struct
player_audio_data 
player_audio_data_t
typedef struct
player_audio_cmd 
player_audio_cmd_t

Define Documentation

#define PLAYER_AUDIO_DATA_BUFFER_SIZE   20

Data buffer size


Typedef Documentation

Command: tone to emitThe audio interface accepts commands to produce fixed-frequency tones through /dev/dsp (which is assumed to be associated with a sound card to which a speaker is attached).

Data: tones detectedThe audio interface reads the audio stream from /dev/audio (which is assumed to be associated with a sound card connected to a microphone) and performs some analysis on it. PLAYER_AUDIO_PAIRS number of frequency/amplitude pairs are then returned as data.


Last updated 12 September 2005 21:38:45