From 8ef18271dd427f94b6ff04aea812698164a11e85 Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Mon, 24 Apr 2006 12:41:30 +0000 Subject: [PATCH] Fix another possible glitch causer on crossfade git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9789 a1c6a512-1295-4272-9138-f99709370657 --- apps/pcmbuf.c | 4 +--- 1 file changed, 1 insertion(+), 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;