forked from len0rd/rockbox
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
This commit is contained in:
parent
4d93177457
commit
17507b979d
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue