speex_resampler: param quality was not respected

Although param was processed, DEFAULT_RESAMPLE_QUALITY (=10) was always
set.
This commit is contained in:
Martin Pulec
2022-03-01 16:08:57 +01:00
parent 3e7ccbda6c
commit 875c938ea0

View File

@@ -373,7 +373,7 @@ bool audio_frame2::resample([[maybe_unused]] audio_frame2_resampler & resampler_
}
int err;
resampler_state.resampler = speex_resampler_init(channels.size(), sample_rate,
new_sample_rate, DEFAULT_RESAMPLE_QUALITY, &err);
new_sample_rate, quality, &err);
if(err) {
abort();
}