summaryrefslogtreecommitdiff
path: root/apps/talk.c
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2006-10-25 08:54:25 +0000
committerSteve Bavin <pondlife@pondlife.me>2006-10-25 08:54:25 +0000
commit71dd94a7eb42dfc29d8b454d00df6debd7d34a65 (patch)
tree3135aba9bff781de7fe0632a330c3ca03a0544d1 /apps/talk.c
parentff5fd00de683e9e1a0da24e75c8a5ad419516e32 (diff)
downloadrockbox-71dd94a7eb42dfc29d8b454d00df6debd7d34a65.zip
rockbox-71dd94a7eb42dfc29d8b454d00df6debd7d34a65.tar.gz
rockbox-71dd94a7eb42dfc29d8b454d00df6debd7d34a65.tar.bz2
rockbox-71dd94a7eb42dfc29d8b454d00df6debd7d34a65.tar.xz
A bit more voice simplification/MAS fixage (FS#6241). Also clear any buffered voice when playback is started.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11334 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/talk.c')
-rw-r--r--apps/talk.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/talk.c b/apps/talk.c
index fd28fdf..d81aa08 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -311,11 +311,10 @@ re_check:
else
{
*size = 0; /* end of data */
- mp3_play_stop(); /* fixme: should be done by caller */
}
}
-/* stop the playback and the pending clips, but at frame boundary */
+/* stop the playback and the pending clips */
static int shutup(void)
{
#if CONFIG_CODEC != SWCODEC
@@ -327,7 +326,7 @@ static int shutup(void)
if (QUEUE_LEVEL == 0) /* has ended anyway */
{
#if CONFIG_CODEC == SWCODEC
- mp3_play_abort();
+ mp3_play_stop();
#endif
return 0;
}
@@ -375,11 +374,7 @@ static int shutup(void)
#endif
/* nothing to do, was frame boundary or not our clip */
-#if CONFIG_CODEC == SWCODEC
- mp3_play_abort();
-#else
mp3_play_stop();
-#endif
queue_write = queue_read = 0; /* reset the queue */