Commit 0e429104 authored by Alexandre Savard's avatar Alexandre Savard

Fixed resampling, gained over 30 % cpu usage!!!!

parent 939f6f27
......@@ -64,8 +64,8 @@ void SamplerateConverter::init( void ) {
// libSamplerateConverter-related
// Set the converter type for the upsampling and the downsampling
// interpolator SRC_SINC_BEST_QUALITY
_src_state_mic = src_new(SRC_SINC_BEST_QUALITY, 1, &_src_err);
_src_state_spkr = src_new(SRC_SINC_BEST_QUALITY, 1, &_src_err);
_src_state_mic = src_new(SRC_LINEAR, 1, &_src_err);
_src_state_spkr = src_new(SRC_LINEAR, 1, &_src_err);
int nbSamplesMax = (int) ( getFrequence() * getFramesize() / 1000 );
_floatBufferDownMic = new float32[nbSamplesMax];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment