FreeCalypso > hg > freecalypso-tools
diff rvinterf/include/audio.h @ 840:25a182bc031b
rvinterf/include/audio.h: create interface definitions
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 31 Jul 2021 07:33:58 +0000 |
parents | ffstools/tiaud/binstruct.h@c458e33060bf |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rvinterf/include/audio.h Sat Jul 31 07:33:58 2021 +0000 @@ -0,0 +1,31 @@ +/* + * This header file contains definitions for talking to ETM_AUDIO. + */ + +/* aur/auw parameter codes */ +#define AUDIO_PATH_USED (0) +#define AUDIO_MICROPHONE_MODE (1) +#define AUDIO_MICROPHONE_GAIN (2) +#define AUDIO_MICROPHONE_EXTRA_GAIN (3) +#define AUDIO_MICROPHONE_OUTPUT_BIAS (4) +#define AUDIO_MICROPHONE_FIR (5) +#define AUDIO_SPEAKER_MODE (6) +#define AUDIO_SPEAKER_GAIN (7) +#define AUDIO_SPEAKER_FILTER (8) +#define AUDIO_SPEAKER_FIR (9) +#define AUDIO_SPEAKER_BUZZER_STATE (10) +#define AUDIO_MICROPHONE_SPEAKER_LOOP_SIDETONE (11) +#define AUDIO_MICROPHONE_SPEAKER_LOOP_AEC (12) +#define AUDIO_SPEAKER_VOLUME_LEVEL (13) + +/* microphone modes */ +#define AUDIO_MICROPHONE_HANDHELD (0) +#define AUDIO_MICROPHONE_HANDFREE (1) +#define AUDIO_MICROPHONE_HEADSET (2) + +/* speaker modes */ +#define AUDIO_SPEAKER_HANDHELD (0) +#define AUDIO_SPEAKER_HANDFREE (1) +#define AUDIO_SPEAKER_HEADSET (2) +#define AUDIO_SPEAKER_BUZZER (3) +#define AUDIO_SPEAKER_HANDHELD_HANDFREE (4)