From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Thu, 17 Jul 2025 11:01:02 +0000 (+0100) Subject: Fix a bug whereby the volume setting was ignored if the input was not at 44100 FPS... X-Git-Tag: 5.0-post-dev~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82d873db11de777d762a89f53bbfd154c6053008;p=thirdparty%2Fshairport-sync.git Fix a bug whereby the volume setting was ignored if the input was not at 44100 FPS and the loudness DSP setting was enabled. --- diff --git a/player.c b/player.c index d2c3639a..f18c12fc 100644 --- a/player.c +++ b/player.c @@ -1694,7 +1694,7 @@ static inline void process_sample(int32_t sample, char **outp, sps_format_t form int64_t hyper_sample = sample; int result = 0; - if (config.loudness) { + if ((config.loudness != 0) && (conn->input_rate == 44100)) { hyper_sample <<= 32; // Do not apply volume as it has already been done with the Loudness DSP filter } else {