diff options
Diffstat (limited to 'apps/voice_thread.c')
-rw-r--r-- | apps/voice_thread.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c index 325860be27..171902d10f 100644 --- a/apps/voice_thread.c +++ b/apps/voice_thread.c | |||
@@ -121,7 +121,7 @@ enum voice_thread_messages | |||
121 | struct voice_info | 121 | struct voice_info |
122 | { | 122 | { |
123 | /* Callback to get more clips */ | 123 | /* Callback to get more clips */ |
124 | mp3_play_callback_t get_more; | 124 | voice_play_callback_t get_more; |
125 | /* Start of clip */ | 125 | /* Start of clip */ |
126 | const void *start; | 126 | const void *start; |
127 | /* Size of clip */ | 127 | /* Size of clip */ |
@@ -276,8 +276,8 @@ static void voice_buf_commit(int count) | |||
276 | } | 276 | } |
277 | 277 | ||
278 | /* Stop any current clip and start playing a new one */ | 278 | /* Stop any current clip and start playing a new one */ |
279 | void mp3_play_data(const void *start, size_t size, | 279 | void voice_play_data(const void *start, size_t size, |
280 | mp3_play_callback_t get_more) | 280 | voice_play_callback_t get_more) |
281 | { | 281 | { |
282 | if (voice_thread_id && start && size && get_more) | 282 | if (voice_thread_id && start && size && get_more) |
283 | { | 283 | { |
@@ -294,7 +294,7 @@ void mp3_play_data(const void *start, size_t size, | |||
294 | } | 294 | } |
295 | 295 | ||
296 | /* Stop current voice clip from playing */ | 296 | /* Stop current voice clip from playing */ |
297 | void mp3_play_stop(void) | 297 | void voice_play_stop(void) |
298 | { | 298 | { |
299 | if (voice_thread_id != 0) | 299 | if (voice_thread_id != 0) |
300 | { | 300 | { |
@@ -303,18 +303,6 @@ void mp3_play_stop(void) | |||
303 | } | 303 | } |
304 | } | 304 | } |
305 | 305 | ||
306 | void mp3_play_pause(bool play) | ||
307 | { | ||
308 | /* a dummy */ | ||
309 | (void)play; | ||
310 | } | ||
311 | |||
312 | /* Tell if voice is still in a playing state */ | ||
313 | bool mp3_is_playing(void) | ||
314 | { | ||
315 | return voice_playing; | ||
316 | } | ||
317 | |||
318 | /* This function is meant to be used by the buffer request functions to | 306 | /* This function is meant to be used by the buffer request functions to |
319 | ensure the codec is no longer active */ | 307 | ensure the codec is no longer active */ |
320 | void voice_stop(void) | 308 | void voice_stop(void) |