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:
parent
23248a75b8
commit
8c5c92dc2c
1 changed files with 8 additions and 3 deletions
|
|
@ -2179,11 +2179,16 @@ static void audio_stop_codec_flush(void)
|
|||
|
||||
static void audio_stop_playback(void)
|
||||
{
|
||||
/* If we were playing, save resume information */
|
||||
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;
|
||||
|
||||
if (!ci.stop_codec)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue