mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-14 17:59:00 +00:00
PS2 ProcessReverb
This commit is contained in:
parent
8c1f1cc7b8
commit
5aa149f0bc
1 changed files with 12 additions and 4 deletions
|
@ -412,14 +412,22 @@ cAudioManager::ProcessReverb()
|
|||
#endif
|
||||
}
|
||||
#else
|
||||
// TODO: PS2 code
|
||||
|
||||
static uint8 OldVolL = 0;
|
||||
static uint8 OldVolR = 0;
|
||||
|
||||
// SoundDistUp, SoundDistLeft, SoundDistRight used in here from TheCamera
|
||||
uint8 VolL = Min(40, 3 * (20 - TheCamera.SoundDistLeft)) + 20;
|
||||
uint8 VolR = Min(40, 3 * (20 - TheCamera.SoundDistRight)) + 20;
|
||||
|
||||
SampleManager.UpdateReverb();
|
||||
uint8 VolUp = 5 * (20 - TheCamera.SoundDistUp);
|
||||
|
||||
VolL = Min(MAX_VOLUME, VolL + VolUp);
|
||||
VolR = Min(MAX_VOLUME, VolR + VolUp);
|
||||
|
||||
if (OldVolL != VolL || OldVolR != VolR) {
|
||||
SampleManager.UpdateReverb(VolL, VolR, 100, 15, 80);
|
||||
OldVolL = VolL;
|
||||
OldVolR = VolR;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue