From 875c938ea08321bea907f011f95452b947b47862 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 1 Mar 2022 16:08:57 +0100 Subject: [PATCH] speex_resampler: param quality was not respected Although param was processed, DEFAULT_RESAMPLE_QUALITY (=10) was always set. --- src/audio/types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/types.cpp b/src/audio/types.cpp index 7b117db58..9dbcd69fd 100644 --- a/src/audio/types.cpp +++ b/src/audio/types.cpp @@ -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(); }