summaryrefslogtreecommitdiff
path: root/apps/codecs/shorten.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2006-11-26 12:02:47 +0000
committerMichael Sevakis <jethead71@rockbox.org>2006-11-26 12:02:47 +0000
commitbbef13eddfefffa1fbcf82185ed73c04a18d22eb (patch)
treebf7d8a684d5031851185498db8388f60a29be662 /apps/codecs/shorten.c
parent4049d44b03d4a17cbf2f48f5f1360ac397da5ef5 (diff)
downloadrockbox-bbef13eddfefffa1fbcf82185ed73c04a18d22eb.tar.gz
rockbox-bbef13eddfefffa1fbcf82185ed73c04a18d22eb.zip
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
Diffstat (limited to 'apps/codecs/shorten.c')
-rw-r--r--apps/codecs/shorten.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/shorten.c b/apps/codecs/shorten.c
index a7fc601ae5..b48a91ea17 100644
--- a/apps/codecs/shorten.c
+++ b/apps/codecs/shorten.c
@@ -98,7 +98,7 @@ next_track:
98 } 98 }
99 99
100 ci->id3->frequency = sc.sample_rate; 100 ci->id3->frequency = sc.sample_rate;
101 ci->configure(DSP_SET_FREQUENCY, (long *)(long)(sc.sample_rate)); 101 ci->configure(DSP_SWITCH_FREQUENCY, (long *)(long)(sc.sample_rate));
102 102
103 if (sc.sample_rate) { 103 if (sc.sample_rate) {
104 ci->id3->length = (sc.totalsamples / sc.sample_rate) * 1000; 104 ci->id3->length = (sc.totalsamples / sc.sample_rate) * 1000;