summaryrefslogtreecommitdiff
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-04-24 12:41:30 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-04-24 12:41:30 +0000
commit8ef18271dd427f94b6ff04aea812698164a11e85 (patch)
treecf085ce0b7075ee297e4abce600f74811025ce8e /apps/pcmbuf.c
parent67604c960b8e467de980b31e4ee9ea8d025b4d7c (diff)
Fix another possible glitch causer on crossfade
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9789 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r--apps/pcmbuf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index a422d6c009..978db3cc87 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -527,6 +527,7 @@ static void crossfade_start(void)
* has not yet been sent to the DMA */
crossfade_rem = pcmbuf_unplayed_bytes;
crossfade_chunk = pcmbuf_read->link;
+ crossfade_sample = 0;
/* Get fade out delay from settings. */
fade_out_delay =
@@ -890,9 +891,6 @@ int pcmbuf_mix_free(void)
return 100;
}
-/* This function does not check for writing over the current main insertion
- * point of the pcm buffer (audiobuffer_fillpos) so that must be checked by
- * the caller */
void pcmbuf_mix_voice(size_t length)
{
short *ibuf = (short *)voicebuf;