summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-08-29 15:11:19 +0000
committerNils Wallménius <nils@rockbox.org>2007-08-29 15:11:19 +0000
commit441fa76a6d23128169ed6c3768f014808df88329 (patch)
tree8b39e11d68dad2e31777351b241c8ed83668c538 /apps/playback.c
parent12c82bdb779d104cbff3a5e5058424357d5dadf8 (diff)
downloadrockbox-441fa76a6d23128169ed6c3768f014808df88329.tar.gz
rockbox-441fa76a6d23128169ed6c3768f014808df88329.zip
Fix flushing of voice during playback, patch in FS#6239 by Stephane Doyon and Daniel Dalton
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14517 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 13167e3ffe..b7d3b9987f 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -658,8 +658,7 @@ void audio_play(long offset)
658#ifdef PLAYBACK_VOICE 658#ifdef PLAYBACK_VOICE
659 /* Truncate any existing voice output so we don't have spelling 659 /* Truncate any existing voice output so we don't have spelling
660 * etc. over the first part of the played track */ 660 * etc. over the first part of the played track */
661 LOGFQUEUE("mp3 > voice Q_VOICE_STOP"); 661 do_shutup();
662 queue_post(&voice_queue, Q_VOICE_STOP, 1);
663#endif 662#endif
664 663
665 /* Start playback */ 664 /* Start playback */
@@ -943,8 +942,7 @@ static void voice_stop(void)
943 if (!voice_codec_loaded) 942 if (!voice_codec_loaded)
944 return; 943 return;
945 944
946 LOGFQUEUE("mp3 > voice Q_VOICE_STOP"); 945 do_shutup();
947 queue_post(&voice_queue, Q_VOICE_STOP, 0);
948 946
949 /* Loop until voice empties it's queue, stops and picks up on the new 947 /* Loop until voice empties it's queue, stops and picks up on the new
950 track; the voice thread must be stopped and waiting for messages 948 track; the voice thread must be stopped and waiting for messages