Fix bug when setting reverb volume to 0

This commit is contained in:
Henrik Rydgård
2025-06-12 11:39:46 +02:00
parent 1f09b782d7
commit f537356bd2
+1 -1
View File
@@ -225,7 +225,7 @@ void SasReverb::ProcessReverb(int16_t *output, const int16_t *input, size_t inpu
// Standard volume is 10, which pairs with a normal shift of 15.
if (reverbVolumeMultiplier <= 0.0f) {
// Force to zero output, which is not the same as "Off."
memset(output, 0, inputSize * 4);
memset(output, 0, inputSize * 4 * sizeof(int16_t));
return;
} else {
volLeft *= reverbVolumeMultiplier;