optimize demod, allow for channel count changes

This commit is contained in:
Charles J. Cliffe
2014-12-21 17:37:41 -05:00
parent 2b18f03cb5
commit 24c86bc9e4
8 changed files with 82 additions and 49 deletions
+2 -2
View File
@@ -65,9 +65,9 @@ void DemodulatorPreThread::initialize() {
// msresamp_crcf_print(resampler);
if (audio_resampler) {
msresamp_crcf_destroy(audio_resampler);
msresamp_rrrf_destroy(audio_resampler);
}
audio_resampler = msresamp_crcf_create(audio_resample_ratio, As);
audio_resampler = msresamp_rrrf_create(audio_resample_ratio, As);
// msresamp_crcf_print(audio_resampler);
initialized = true;