mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
DSPHLE/Zelda: fix reverb volume being multiplied by current volume twice
This commit is contained in:
parent
295d86c86f
commit
381c2702f6
@ -1217,11 +1217,9 @@ void ZeldaAudioRenderer::AddVoice(u16 voice_id)
|
|||||||
|
|
||||||
// Compute reverb volume and ramp deltas.
|
// Compute reverb volume and ramp deltas.
|
||||||
s16 reverb_volumes[4], reverb_volume_deltas[4];
|
s16 reverb_volumes[4], reverb_volume_deltas[4];
|
||||||
s16 reverb_volume_factor =
|
|
||||||
(vpb.dolby_volume_current * vpb.dolby_reverb_factor) >> (shift_factor - 1);
|
|
||||||
for (size_t i = 0; i < 4; ++i)
|
for (size_t i = 0; i < 4; ++i)
|
||||||
{
|
{
|
||||||
reverb_volumes[i] = (quadrant_volumes[i] * reverb_volume_factor) >> shift_factor;
|
reverb_volumes[i] = (quadrant_volumes[i] * vpb.dolby_reverb_factor) >> shift_factor;
|
||||||
reverb_volume_deltas[i] = (volume_deltas[i] * vpb.dolby_reverb_factor) >> shift_factor;
|
reverb_volume_deltas[i] = (volume_deltas[i] * vpb.dolby_reverb_factor) >> shift_factor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user