From bbef13eddfefffa1fbcf82185ed73c04a18d22eb Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 26 Nov 2006 12:02:47 +0000 Subject: SWCODEC: Stop clicks between tracks when resampler is active by only switching the DSP frequency and not resetting the resampler at track boundaries. Will make sure DSP is correctly flushed at dicontinuities but don't hear any problems currently. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11600 a1c6a512-1295-4272-9138-f99709370657 --- apps/dsp.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/dsp.c') diff --git a/apps/dsp.c b/apps/dsp.c index c6d669b..b59c391 100644 --- a/apps/dsp.c +++ b/apps/dsp.c @@ -1055,6 +1055,12 @@ bool dsp_configure(int setting, void *value) dsp->new_gain = true; break; + case DSP_FLUSH: + memset(&resample_data[current_codec], 0, + sizeof (struct resample_data)); + dither_init(); + break; + case DSP_SET_TRACK_GAIN: dsp->track_gain = (long) value; dsp->new_gain = true; -- cgit v1.1