Skip to content
Snippets Groups Projects
Commit 0e429104 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

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

parent 939f6f27
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment