Fix a bug whereby the volume setting was ignored if the input was not at 44100 FPS and the loudness DSP setting was enabled.

This commit is contained in:
Mike Brady
2025-07-17 12:01:02 +01:00
parent 742f38eb52
commit 82d873db11
+1 -1
View File
@@ -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 {