summaryrefslogtreecommitdiffstats
path: root/apps/dsp.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2006-11-25 20:59:45 +0000
committerMichael Sevakis <jethead71@rockbox.org>2006-11-25 20:59:45 +0000
commit17507b979d9248000200e50e747e37cce73f048f (patch)
tree38c1b6785ab3ff1f2c037bddf0f223856b8d9897 /apps/dsp.c
parent4d93177457ddaeb9a8b3c6ebba20269f0761b636 (diff)
downloadrockbox-17507b979d9248000200e50e747e37cce73f048f.tar.gz
rockbox-17507b979d9248000200e50e747e37cce73f048f.zip
Fixed bug in dither_init that was causing the AIFF playback at sample rates other than 44.1kHz to not procede. It created a dependency of setting sample depth before frequency and aiff.codec does it the other way.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11595 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/dsp.c')
-rw-r--r--apps/dsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dsp.c b/apps/dsp.c
index 5627b05bca..c6d669b16a 100644
--- a/apps/dsp.c
+++ b/apps/dsp.c
@@ -485,8 +485,8 @@ void dsp_dither_enable(bool enable)
static void dither_init(void)
{
- memset(&dither_data[0], 0, sizeof(dither_data));
- memset(&dither_data[1], 0, sizeof(dither_data));
+ memset(&dither_data[0], 0, sizeof(struct dither_data));
+ memset(&dither_data[1], 0, sizeof(struct dither_data));
dsp->dither_bias = (1L << (dsp->frac_bits - NATIVE_DEPTH));
dsp->dither_mask = (1L << (dsp->frac_bits + 1 - NATIVE_DEPTH)) - 1;
}