diff options
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 68fd8be369..bd443e4f38 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -1413,9 +1413,14 @@ int playlist_resume(void) | |||
1413 | }; | 1413 | }; |
1414 | 1414 | ||
1415 | /* use mp3 buffer for maximum load speed */ | 1415 | /* use mp3 buffer for maximum load speed */ |
1416 | #if CONFIG_HWCODEC != MASNONE | ||
1416 | talk_buffer_steal(); /* we use the mp3 buffer, need to tell */ | 1417 | talk_buffer_steal(); /* we use the mp3 buffer, need to tell */ |
1417 | buflen = (audiobufend - audiobuf); | 1418 | buflen = (audiobufend - audiobuf); |
1418 | buffer = audiobuf; | 1419 | buffer = audiobuf; |
1420 | #else | ||
1421 | buflen = (audiobufend - audiobuf - talk_get_bufsize()); | ||
1422 | buffer = &audiobuf[talk_get_bufsize()]; | ||
1423 | #endif | ||
1419 | 1424 | ||
1420 | empty_playlist(playlist, true); | 1425 | empty_playlist(playlist, true); |
1421 | 1426 | ||
@@ -1827,7 +1832,9 @@ int playlist_start(int start_index, int offset) | |||
1827 | struct playlist_info* playlist = ¤t_playlist; | 1832 | struct playlist_info* playlist = ¤t_playlist; |
1828 | 1833 | ||
1829 | playlist->index = start_index; | 1834 | playlist->index = start_index; |
1835 | #if CONFIG_HWCODEC != MASNONE | ||
1830 | talk_buffer_steal(); /* will use the mp3 buffer */ | 1836 | talk_buffer_steal(); /* will use the mp3 buffer */ |
1837 | #endif | ||
1831 | audio_play(offset); | 1838 | audio_play(offset); |
1832 | 1839 | ||
1833 | return 0; | 1840 | return 0; |