Hi, Attached is a patch which enables FFTW3 to be used by libspeexdsp. Using SSE, the FFT code is more than twice as fast, and it's 50% faster even without SSE. To enable the library, you'll need to call configure with '--with-gpl-fftw3'. Based on the benchmarking we did, this also changes the default FFT to smallft for floating point implementations when not using FFTW3. Best regards, Thorvald -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: speex-fftw3.diff Url: http://lists.xiph.org/pipermail/speex-dev/attachments/20080525/8fbd63d9/attachment.txt
i test your agc fixpoint code , but it does not work well, far end cant hear anything. printf("%f %f",loudness , st->agc_gain); result is : 8.047619 2048.000000 6.285714 280.000000 1.000000 280.000000 2.619048 153.000000 44.523810 2.000000 38.619048 0.000000 47.000000 0.000000 22.809524 0.000000 30.571429 0.000000 17.571429 0.000000 18.380952 0.000000>Thorvald Natvig <thorvald at natvig.com> ???>Hi,> >Sorry for this being late. Anyway, this has an AGC that works in >fixed >point. The calculation of the gain is changed slightly even in floating >point, as loudness_accum is no longer pow()'d, which affects the >initial >frames slightly. It gives results in fixed point, but no extensive >verification has been done, and many of the _ctl functions still do not > >work, as they need to convert back and forth to decibel scale. I think >perhaps the best solution there is to have the state struct store the >decibel value as is done for noise suppression levels etc. > >-------------- next part -------------- >An embedded and charset-unspecified text was scrubbed... >Name: speex-agc-temp.diff >Url: http://lists.xiph.org/pipermail/speex->dev/attachments/20080522/ea47b677/attachment.txt--------------------------------- ???????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20080527/81714b87/attachment.htm
Patch applied. I'm interested in feedback on this. Jean-Marc Thorvald Natvig a ?crit :> Hi, > > Attached is a patch which enables FFTW3 to be used by libspeexdsp. Using > SSE, the FFT code is more than twice as fast, and it's 50% faster even > without SSE. To enable the library, you'll need to call configure with > '--with-gpl-fftw3'. > > Based on the benchmarking we did, this also changes the default FFT to > smallft for floating point implementations when not using FFTW3. > > Best regards, > Thorvald > > > ------------------------------------------------------------------------ > > _______________________________________________ > Speex-dev mailing list > Speex-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev
Small update. This makes --without-gpl-fftw3 do the expected, and also allow --with-gpl-fftw3=/path/to/fftw3 for alternate installs. It also zeroes the imaginary of the nyquist element; it works without it, but it's recommended to do. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: speex-fftw3-fix.diff Url: http://lists.xiph.org/pipermail/speex-dev/attachments/20080527/f46859ed/attachment.txt