[Speex-dev] Scaling fix for float input
Arslan, Fahad
Fahad_Arslan at mentor.com
Fri Dec 20 05:06:21 PST 2013
Need to adjust scale for floating input.
diff -NaurbB a/libspeex/resample.c b/libspeex/resample.c
--- a/libspeex/resample.c 2013-12-20 17:40:27.326576921 +0500
+++ b/libspeex/resample.c 2013-12-20 17:40:16.918577087 +0500
@@ -915,7 +915,7 @@
if (in) {
for(j=0;j<ichunk;++j)
#ifdef FIXED_POINT
- x[j+st->filt_len-1]=WORD2INT(in[j*istride_save]);
+ x[j+st->filt_len-1]=WORD2INT(32768.*in[j*istride_save]);
#else
x[j+st->filt_len-1]=in[j*istride_save];
#endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20131220/93160412/attachment.htm
More information about the Speex-dev
mailing list