1
0
Fork 0
forked from len0rd/rockbox

FS#10377 - "PCM buffer remainder is played under too many conditions" by Jeffrey Goode.

Prevents playing the remainder of the pcmbuf on manual stop, as it isn't needed in this case. Now the remainder is only played when the music automatically plays out.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21569 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-06-29 19:13:50 +00:00
parent 23248a75b8
commit 8c5c92dc2c

View file

@ -2179,11 +2179,16 @@ static void audio_stop_codec_flush(void)
static void audio_stop_playback(void) static void audio_stop_playback(void)
{ {
/* If we were playing, save resume information */
if (playing) if (playing)
{ {
pcmbuf_play_remainder(); /* If still actively playing here, play out the last samples in the track
* before stopping. A manual stop is actually paused at this point, so
* don't continue playback.
*/
if (!paused)
pcmbuf_play_remainder();
/* If we were playing, save resume information */
struct mp3entry *id3 = NULL; struct mp3entry *id3 = NULL;
if (!ci.stop_codec) if (!ci.stop_codec)