summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs')
-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 a8a2e0b..a41148f 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)
+#ifndef SPEEX_DISABLE_ENCODER
spx_word16_t compute_rms(const spx_sig_t *x, int len)
{
int i;
@@ -227,6 +228,7 @@ spx_word16_t compute_rms(const spx_sig_t *x, int len)
return EXTRACT16(PSHR32(SHL32(EXTEND32(spx_sqrt(DIV32(sum,len))),(sig_shift+3)),SIG_SHIFT));
}
+#endif /*SPEEX_DISABLE_ENCODER */
spx_word16_t compute_rms16(const spx_word16_t *x, int len)
{