audiodsp
[Interface specifications]
Detailed Description
Audible tone emission / detection.
The audiodsp
interface is used to control sound hardware, if equipped.
#define | PLAYER_AUDIODSP_MAX_FREQS 8 |
Maximum number of frequencies to report. | |
#define | PLAYER_AUDIODSP_MAX_BITSTRING_LEN 64 |
Maximum length of a BPSK bitstring to emit. | |
#define | PLAYER_AUDIODSP_SET_CONFIG 1 |
Request/reply subtype: set configuration. | |
#define | PLAYER_AUDIODSP_GET_CONFIG 2 |
Request/reply subtype: get configuration. | |
#define | PLAYER_AUDIODSP_PLAY_TONE 1 |
Command subtype: play tone. | |
#define | PLAYER_AUDIODSP_PLAY_CHIRP 2 |
Command subtype: play chirp. | |
#define | PLAYER_AUDIODSP_REPLAY 3 |
Command subtype: replay (last tone, last chirp ?). | |
#define | PLAYER_AUDIODSP_DATA_TONES 1 |
Data subtype: detected tones. | |
typedef player_audiodsp_data | player_audiodsp_data_t |
Data: detected tones (PLAYER_AUDIODSP_DATA_TONES). | |
typedef player_audiodsp_cmd | player_audiodsp_cmd_t |
Command: tone / chirp to play. | |
typedef player_audiodsp_config | player_audiodsp_config_t |
Request/reply : Get/set audio properties. |
Typedef Documentation
|
Command: tone / chirp to play.
The |
|
Request/reply : Get/set audio properties. Send a null PLAYER_AUDIODSP_GET_CONFIG request to receive the audiodsp configuration. Send a full PLAYER_AUDIODSP_SET_CONFIG request to modify the configuration (and receive a null response). The sample format is defined in sys/soundcard.h, and defines the byte size and endian format for each sample. The sample rate defines the Hertz at which to sample. Mono or stereo sampling is defined in the channels parameter where 1==mono and 2==stereo. |
|
Data: detected tones (PLAYER_AUDIODSP_DATA_TONES).
The |