summaryrefslogtreecommitdiff
path: root/apps/dsp.c
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2005-07-25 13:34:28 +0000
committerMagnus Holmgren <magnushol@gmail.com>2005-07-25 13:34:28 +0000
commit210ce6a766325508442fd81094a0aa57057294a2 (patch)
tree7764fa090c74a6f56314529db854eaeaf3ff6fa4 /apps/dsp.c
parent27c83252e2fa037555c03e4adea263eecd6ffde8 (diff)
Speed up clipping; makes Vorbis decoding almost as fast as before the VorbisGain addition. Speeds up MP3 decoding as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7239 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/dsp.c')
-rw-r--r--apps/dsp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/dsp.c b/apps/dsp.c
index 6f00736bad..a7d61e6656 100644
--- a/apps/dsp.c
+++ b/apps/dsp.c
@@ -108,7 +108,7 @@ struct dither_data
long random;
};
-static struct dsp_config dsp;
+static struct dsp_config dsp IDATA_ATTR;
static struct dither_data dither_data[2] IDATA_ATTR;
static struct resample_data resample_data[2] IDATA_ATTR;
@@ -388,7 +388,6 @@ static void apply_gain(long* src[], int count)
long gain = dsp.replaygain;
long i;
-
src[0] = d0;
src[1] = d1;