mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 04:56:24 +02:00
Fix bug when setting reverb volume to 0
This commit is contained in:
1 parent
1f09b782d7
commit
f537356bd2
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user