Better support for non-48 kHz sampling rates

This commit is contained in:
Jean-Marc Valin 2010-07-16 11:47:50 -04:00
parent af1fce93b1
commit 223b69db02
2 changed files with 34 additions and 9 deletions

View file

@ -508,7 +508,7 @@ void deemphasis(celt_sig *in, celt_word16 *pcm, int N, int _C, const celt_word16
celt_sig tmp = *x + m;
m = MULT16_32_Q15(coef[0], tmp)
- MULT16_32_Q15(coef[1], *x);
tmp = SHL32(MULT16_32_Q15(coef[3], tmp), 1);
tmp = SHL32(MULT16_32_Q15(coef[3], tmp), 2);
*y = SCALEOUT(SIG2WORD16(tmp));
x+=C;
y+=C;