summaryrefslogtreecommitdiff
path: root/firmware/export/audio.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/audio.h')
-rw-r--r--firmware/export/audio.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/export/audio.h b/firmware/export/audio.h
index 4875d621f0..3edbfe155d 100644
--- a/firmware/export/audio.h
+++ b/firmware/export/audio.h
@@ -150,6 +150,17 @@ enum audio_sources
150 AUDIO_SRC_MAX = AUDIO_NUM_SOURCES-1 150 AUDIO_SRC_MAX = AUDIO_NUM_SOURCES-1
151}; 151};
152 152
153#if CONFIG_CODEC == SWCODEC
154/* selects an audio source for recording or playback */
155#define SRCF_PLAYBACK 0x0000 /* default */
156#define SRCF_RECORDING 0x1000
157#ifdef CONFIG_TUNER
158/* for AUDIO_SRC_FMRADIO */
159#define SRCF_FMRADIO_PLAYING 0x0000 /* default */
160#define SRCF_FMRADIO_PAUSED 0x2000
161#endif
162#endif
163
153#ifdef HAVE_RECORDING 164#ifdef HAVE_RECORDING
154/* parameters for audio_set_recording_options */ 165/* parameters for audio_set_recording_options */
155struct audio_recording_options 166struct audio_recording_options
@@ -186,6 +197,8 @@ unsigned long audio_num_recorded_bytes(void);
186bool audio_load_encoder(int afmt); 197bool audio_load_encoder(int afmt);
187void audio_remove_encoder(void); 198void audio_remove_encoder(void);
188unsigned char *audio_get_recording_buffer(size_t *buffer_size); 199unsigned char *audio_get_recording_buffer(size_t *buffer_size);
200void audio_set_source(int source, unsigned flags);
201void audio_set_output_source(int source);
189#endif /* CONFIG_CODEC == SWCODEC */ 202#endif /* CONFIG_CODEC == SWCODEC */
190#endif /* HAVE_RECORDING */ 203#endif /* HAVE_RECORDING */
191 204