diff options
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/playback.c b/apps/playback.c index ca88b5f5e3..329e8b856b 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -332,7 +332,7 @@ static struct mutex mutex_codecthread NOCACHEBSS_ATTR; | |||
332 | static volatile bool voice_thread_start = false; /* Triggers voice playback (A/V) */ | 332 | static volatile bool voice_thread_start = false; /* Triggers voice playback (A/V) */ |
333 | static volatile bool voice_is_playing NOCACHEBSS_ATTR = false; /* Is voice currently playing? (V) */ | 333 | static volatile bool voice_is_playing NOCACHEBSS_ATTR = false; /* Is voice currently playing? (V) */ |
334 | static volatile bool voice_codec_loaded NOCACHEBSS_ATTR = false; /* Is voice codec loaded (V/A-) */ | 334 | static volatile bool voice_codec_loaded NOCACHEBSS_ATTR = false; /* Is voice codec loaded (V/A-) */ |
335 | static char *voicebuf = NULL; | 335 | static unsigned char *voicebuf = NULL; |
336 | static size_t voice_remaining = 0; | 336 | static size_t voice_remaining = 0; |
337 | 337 | ||
338 | #ifdef IRAM_STEAL | 338 | #ifdef IRAM_STEAL |
@@ -340,12 +340,12 @@ static size_t voice_remaining = 0; | |||
340 | static bool voice_iram_stolen = false; | 340 | static bool voice_iram_stolen = false; |
341 | #endif | 341 | #endif |
342 | 342 | ||
343 | static void (*voice_getmore)(unsigned char** start, int* size) = NULL; | 343 | static void (*voice_getmore)(unsigned char** start, size_t* size) = NULL; |
344 | 344 | ||
345 | struct voice_info { | 345 | struct voice_info { |
346 | void (*callback)(unsigned char **start, int *size); | 346 | void (*callback)(unsigned char **start, size_t* size); |
347 | int size; | 347 | size_t size; |
348 | char *buf; | 348 | unsigned char *buf; |
349 | }; | 349 | }; |
350 | static void voice_thread(void); | 350 | static void voice_thread(void); |
351 | static void voice_stop(void); | 351 | static void voice_stop(void); |
@@ -355,12 +355,12 @@ static void voice_stop(void); | |||
355 | /* --- External interfaces --- */ | 355 | /* --- External interfaces --- */ |
356 | 356 | ||
357 | void mp3_play_data(const unsigned char* start, int size, | 357 | void mp3_play_data(const unsigned char* start, int size, |
358 | void (*get_more)(unsigned char** start, int* size)) | 358 | void (*get_more)(unsigned char** start, size_t* size)) |
359 | { | 359 | { |
360 | #ifdef PLAYBACK_VOICE | 360 | #ifdef PLAYBACK_VOICE |
361 | static struct voice_info voice_clip; | 361 | static struct voice_info voice_clip; |
362 | voice_clip.callback = get_more; | 362 | voice_clip.callback = get_more; |
363 | voice_clip.buf = (char *)start; | 363 | voice_clip.buf = (unsigned char*)start; |
364 | voice_clip.size = size; | 364 | voice_clip.size = size; |
365 | LOGFQUEUE("mp3 > voice Q_VOICE_STOP"); | 365 | LOGFQUEUE("mp3 > voice Q_VOICE_STOP"); |
366 | queue_post(&voice_queue, Q_VOICE_STOP, 0); | 366 | queue_post(&voice_queue, Q_VOICE_STOP, 0); |
@@ -1238,7 +1238,7 @@ voice_play_clip: | |||
1238 | if (voice_remaining == 0 || voicebuf == NULL) | 1238 | if (voice_remaining == 0 || voicebuf == NULL) |
1239 | { | 1239 | { |
1240 | if (voice_getmore) | 1240 | if (voice_getmore) |
1241 | voice_getmore((unsigned char **)&voicebuf, (int *)&voice_remaining); | 1241 | voice_getmore((unsigned char **)&voicebuf, &voice_remaining); |
1242 | 1242 | ||
1243 | /* If this clip is done */ | 1243 | /* If this clip is done */ |
1244 | if (voice_remaining == 0) | 1244 | if (voice_remaining == 0) |