diff options
Diffstat (limited to 'libspeex/filterbank.c')
-rw-r--r-- | libspeex/filterbank.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libspeex/filterbank.c b/libspeex/filterbank.c index 187d5ee..e2fb71d 100644 --- a/libspeex/filterbank.c +++ b/libspeex/filterbank.c @@ -36,9 +36,10 @@ #endif #include "filterbank.h" -#include "misc.h" +#include "arch.h" #include <math.h> #include "math_approx.h" +#include "os_support.h" #ifdef FIXED_POINT @@ -59,7 +60,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)); |