diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-26 03:18:41 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-07-26 03:34:55 +0200 |
commit | a064b3a687b6ba4b112eaf1e69738b27358baabf (patch) | |
tree | b2c214a4b9d27e10d99264b9d3ac742db9d202e2 /src/audio/sampman_oal.cpp | |
parent | Fix aiming with flamethrower with PC controls (diff) | |
download | re3-a064b3a687b6ba4b112eaf1e69738b27358baabf.tar re3-a064b3a687b6ba4b112eaf1e69738b27358baabf.tar.gz re3-a064b3a687b6ba4b112eaf1e69738b27358baabf.tar.bz2 re3-a064b3a687b6ba4b112eaf1e69738b27358baabf.tar.lz re3-a064b3a687b6ba4b112eaf1e69738b27358baabf.tar.xz re3-a064b3a687b6ba4b112eaf1e69738b27358baabf.tar.zst re3-a064b3a687b6ba4b112eaf1e69738b27358baabf.zip |
Diffstat (limited to 'src/audio/sampman_oal.cpp')
-rw-r--r-- | src/audio/sampman_oal.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/audio/sampman_oal.cpp b/src/audio/sampman_oal.cpp index 2d9f9e86..74b352a1 100644 --- a/src/audio/sampman_oal.cpp +++ b/src/audio/sampman_oal.cpp @@ -995,7 +995,7 @@ cSampleManager::Initialise(void) int32 randval; if ( bUseRandomTable ) - randval = AudioManager.GetRandomNumber(1); + randval = AudioManager.m_anRandomTable[1]; else randval = localtm->tm_sec * localtm->tm_min; @@ -1006,7 +1006,7 @@ cSampleManager::Initialise(void) randmp3 = randmp3->pNext; if ( bUseRandomTable ) - _CurMP3Pos = AudioManager.GetRandomNumber(0) % randmp3->nTrackLength; + _CurMP3Pos = AudioManager.m_anRandomTable[0] % randmp3->nTrackLength; else { if ( localtm->tm_sec > 0 ) @@ -1015,7 +1015,7 @@ cSampleManager::Initialise(void) _CurMP3Pos = s*s*s*s*s*s*s*s % randmp3->nTrackLength; } else - _CurMP3Pos = AudioManager.GetRandomNumber(0) % randmp3->nTrackLength; + _CurMP3Pos = AudioManager.m_anRandomTable[0] % randmp3->nTrackLength; } } else @@ -1363,9 +1363,9 @@ bool8 cSampleManager::UpdateReverb(void) if ( AudioManager.GetFrameCounter() & 15 ) return FALSE; - float y = AudioManager.GetReflectionsDistance(REFLECTION_TOP) + AudioManager.GetReflectionsDistance(REFLECTION_BOTTOM); - float x = AudioManager.GetReflectionsDistance(REFLECTION_LEFT) + AudioManager.GetReflectionsDistance(REFLECTION_RIGHT); - float z = AudioManager.GetReflectionsDistance(REFLECTION_UP); + float y = AudioManager.m_afReflectionsDistances[REFLECTION_TOP] + AudioManager.m_afReflectionsDistances[REFLECTION_BOTTOM]; + float x = AudioManager.m_afReflectionsDistances[REFLECTION_LEFT] + AudioManager.m_afReflectionsDistances[REFLECTION_RIGHT]; + float z = AudioManager.m_afReflectionsDistances[REFLECTION_UP]; float normy = norm(y, 5.0f, 40.0f); float normx = norm(x, 5.0f, 40.0f); |