From a2d630b8ca04fd16796fd2a61e43ac33003c18c3 Mon Sep 17 00:00:00 2001 From: zhouyuxin Date: Mon, 24 Mar 2025 15:08:04 +0800 Subject: [PATCH] fix pop sound caused by trival resampling method Signed-off-by: zhouyuxin --- src/pulsecore/resampler.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c index 4c51cfc1d..c5fa55cdd 100644 --- a/src/pulsecore/resampler.c +++ b/src/pulsecore/resampler.c @@ -208,6 +208,11 @@ static pa_resample_method_t fix_method( break; } + if (method != PA_RESAMPLER_AUTO) { + AUDIO_INFO_LOG("resampler method is not auto, reset to auto!"); + method = PA_RESAMPLER_AUTO; + } + if (method == PA_RESAMPLER_AUTO) method = choose_auto_resampler(flags, rate_a, rate_b); -- Gitee