summaryrefslogtreecommitdiff
path: root/apps/audio_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/audio_thread.c')
-rw-r--r--apps/audio_thread.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/audio_thread.c b/apps/audio_thread.c
index 397d8b0946..bbf73470d2 100644
--- a/apps/audio_thread.c
+++ b/apps/audio_thread.c
@@ -108,6 +108,16 @@ static void NORETURN_ATTR audio_thread(void)
108 } 108 }
109} 109}
110 110
111void audio_queue_post(long id, intptr_t data)
112{
113 queue_post(&audio_queue, id, data);
114}
115
116intptr_t audio_queue_send(long id, intptr_t data)
117{
118 return queue_send(&audio_queue, id, data);
119}
120
111/* Return the playback and recording status */ 121/* Return the playback and recording status */
112int audio_status(void) 122int audio_status(void)
113{ 123{
@@ -156,7 +166,9 @@ void audio_init(void)
156 audio_thread_id); 166 audio_thread_id);
157 167
158 playback_init(); 168 playback_init();
159 /* Recording doesn't need init call */ 169#ifdef AUDIO_HAVE_RECORDING
170 recording_init();
171#endif
160 172
161 /* ...now...audio_reset_buffer must know the size of voicefile buffer so 173 /* ...now...audio_reset_buffer must know the size of voicefile buffer so
162 init talk first which will init the buffers */ 174 init talk first which will init the buffers */