]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix a bug whereby the volume setting was ignored if the input was not at 44100 FPS...
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 17 Jul 2025 11:01:02 +0000 (12:01 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 17 Jul 2025 11:01:02 +0000 (12:01 +0100)
player.c

index d2c3639aa9fa016b73209fee904e34be9da86562..f18c12fc3d796f1832d145755e31d55e0cdae720 100644 (file)
--- 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 {