diff options
author | Thom Johansen <thomj@rockbox.org> | 2007-10-19 21:10:25 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2007-10-19 21:10:25 +0000 |
commit | 56db5597548d0e9b9733b556a5c14ab4e38547e6 (patch) | |
tree | 8846e7d3a15f264853e6ee238994e3522e3bcc5a /apps/codecs/libspeex/filterbank.c | |
parent | 6dc3a743addde6146b736ec5e1c71159c2150f95 (diff) | |
download | rockbox-56db5597548d0e9b9733b556a5c14ab4e38547e6.tar.gz rockbox-56db5597548d0e9b9733b556a5c14ab4e38547e6.zip |
Sync Speex to SVN. Add new header file to adapt to Speex' new way of doing wrapper functions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15209 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libspeex/filterbank.c')
-rw-r--r-- | apps/codecs/libspeex/filterbank.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/libspeex/filterbank.c b/apps/codecs/libspeex/filterbank.c index e665560bff..00391ebf7f 100644 --- a/apps/codecs/libspeex/filterbank.c +++ b/apps/codecs/libspeex/filterbank.c @@ -59,7 +59,7 @@ FilterBank *filterbank_new(int banks, spx_word32_t sampling, int len, int type) int id1; int id2; df = DIV32(SHL32(sampling,15),MULT16_16(2,len)); - max_mel = toBARK(EXTRACT16(MULT16_16_Q15(QCONST16(.5f,15),sampling))); + max_mel = toBARK(EXTRACT16(sampling/2)); mel_interval = PDIV32(max_mel,banks-1); bank = (FilterBank*)speex_alloc(sizeof(FilterBank)); |