summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 564cd03d90..8334260242 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -533,13 +533,7 @@ static int add_indices_to_playlist(struct playlist_info* playlist,
533 { 533 {
534 /* use mp3 buffer for maximum load speed */ 534 /* use mp3 buffer for maximum load speed */
535 audio_stop(); 535 audio_stop();
536#if CONFIG_CODEC != SWCODEC 536 buffer = audio_get_buffer(false, &buflen);
537 talk_buffer_steal(); /* we use the mp3 buffer, need to tell */
538 buflen = (audiobufend - audiobuf);
539 buffer = (char *)audiobuf;
540#else
541 buffer = (char *)audio_get_buffer(false, &buflen);
542#endif
543 } 537 }
544 538
545 store_index = true; 539 store_index = true;
@@ -2018,13 +2012,7 @@ int playlist_resume(void)
2018 bool sorted = true; 2012 bool sorted = true;
2019 2013
2020 /* use mp3 buffer for maximum load speed */ 2014 /* use mp3 buffer for maximum load speed */
2021#if CONFIG_CODEC != SWCODEC
2022 talk_buffer_steal(); /* we use the mp3 buffer, need to tell */
2023 buflen = (audiobufend - audiobuf);
2024 buffer = (char *)audiobuf;
2025#else
2026 buffer = (char *)audio_get_buffer(false, &buflen); 2015 buffer = (char *)audio_get_buffer(false, &buflen);
2027#endif
2028 2016
2029 empty_playlist(playlist, true); 2017 empty_playlist(playlist, true);
2030 2018
@@ -2449,10 +2437,6 @@ void playlist_start(int start_index, int offset)
2449 2437
2450 playlist->index = start_index; 2438 playlist->index = start_index;
2451 2439
2452#if CONFIG_CODEC != SWCODEC
2453 talk_buffer_steal(); /* will use the mp3 buffer */
2454#endif
2455
2456 playlist->started = true; 2440 playlist->started = true;
2457 sync_control(playlist, false); 2441 sync_control(playlist, false);
2458 audio_play(offset); 2442 audio_play(offset);