[xiph-commits] r10712 - trunk/speex/libspeex
jm at svn.xiph.org
jm at svn.xiph.org
Mon Jan 9 01:19:01 PST 2006
Author: jm
Date: 2006-01-09 01:18:59 -0800 (Mon, 09 Jan 2006)
New Revision: 10712
Modified:
trunk/speex/libspeex/mdf.c
Log:
Scaling up after pre-emphasis was *almost* a good idea...
Modified: trunk/speex/libspeex/mdf.c
===================================================================
--- trunk/speex/libspeex/mdf.c 2006-01-09 03:47:36 UTC (rev 10711)
+++ trunk/speex/libspeex/mdf.c 2006-01-09 09:18:59 UTC (rev 10712)
@@ -63,7 +63,6 @@
#include "misc.h"
#include "speex/speex_echo.h"
-#include "smallft.h"
#include "fftwrap.h"
#include "pseudofloat.h"
#include "math_approx.h"
@@ -399,12 +398,12 @@
{
spx_word16_t tmp;
st->x[i] = st->x[i+st->frame_size];
- st->x[i+st->frame_size] = SHL16(SUB16(echo[i], MULT16_16_P15(st->preemph, st->memX)),1);
+ st->x[i+st->frame_size] = SUB16(echo[i], MULT16_16_P15(st->preemph, st->memX));
st->memX = echo[i];
tmp = st->d[i];
st->d[i] = st->d[i+st->frame_size];
- st->d[i+st->frame_size] = SHL16(SUB16(tmp, MULT16_16_P15(st->preemph, st->memD)),1);
+ st->d[i+st->frame_size] = SUB16(tmp, MULT16_16_P15(st->preemph, st->memD));
st->memD = tmp;
}
@@ -436,7 +435,6 @@
tmp_out = SUB32(EXTEND32(st->d[i+st->frame_size]), EXTEND32(st->y[i+st->frame_size]));
#endif
- tmp_out = PSHR32(tmp_out,1);
/* Saturation */
if (tmp_out>32767)
tmp_out = 32767;
More information about the commits
mailing list