summaryrefslogtreecommitdiff
path: root/apps/codecs/libspeex/filters.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libspeex/filters.c')
-rw-r--r--apps/codecs/libspeex/filters.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/codecs/libspeex/filters.c b/apps/codecs/libspeex/filters.c
index a8a2e0bc71..a41148fcfb 100644
--- a/apps/codecs/libspeex/filters.c
+++ b/apps/codecs/libspeex/filters.c
@@ -187,6 +187,7 @@ void signal_div(const spx_sig_t *x, spx_sig_t *y, spx_word32_t scale, int len)
187 187
188 188
189 189
190#ifndef SPEEX_DISABLE_ENCODER
190spx_word16_t compute_rms(const spx_sig_t *x, int len) 191spx_word16_t compute_rms(const spx_sig_t *x, int len)
191{ 192{
192 int i; 193 int i;
@@ -227,6 +228,7 @@ spx_word16_t compute_rms(const spx_sig_t *x, int len)
227 228
228 return EXTRACT16(PSHR32(SHL32(EXTEND32(spx_sqrt(DIV32(sum,len))),(sig_shift+3)),SIG_SHIFT)); 229 return EXTRACT16(PSHR32(SHL32(EXTEND32(spx_sqrt(DIV32(sum,len))),(sig_shift+3)),SIG_SHIFT));
229} 230}
231#endif /*SPEEX_DISABLE_ENCODER */
230 232
231spx_word16_t compute_rms16(const spx_word16_t *x, int len) 233spx_word16_t compute_rms16(const spx_word16_t *x, int len)
232{ 234{