summaryrefslogtreecommitdiffstats
path: root/src/audio/sampman_oal.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-18 14:49:06 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-18 14:49:06 +0200
commita13089cd2e32d9d5f63ab1035d6eef03c45ce774 (patch)
tree229bee085a318ff3917dbf979636c00ee051f8af /src/audio/sampman_oal.cpp
parentMerge pull request #1304 from AGraber/patch-1 (diff)
downloadre3-a13089cd2e32d9d5f63ab1035d6eef03c45ce774.tar
re3-a13089cd2e32d9d5f63ab1035d6eef03c45ce774.tar.gz
re3-a13089cd2e32d9d5f63ab1035d6eef03c45ce774.tar.bz2
re3-a13089cd2e32d9d5f63ab1035d6eef03c45ce774.tar.lz
re3-a13089cd2e32d9d5f63ab1035d6eef03c45ce774.tar.xz
re3-a13089cd2e32d9d5f63ab1035d6eef03c45ce774.tar.zst
re3-a13089cd2e32d9d5f63ab1035d6eef03c45ce774.zip
Diffstat (limited to '')
-rw-r--r--src/audio/sampman_oal.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/audio/sampman_oal.cpp b/src/audio/sampman_oal.cpp
index 8a9379ea..3d693870 100644
--- a/src/audio/sampman_oal.cpp
+++ b/src/audio/sampman_oal.cpp
@@ -1390,6 +1390,7 @@ bool8 cSampleManager::UpdateReverb(void)
float fRatio = 0.0f;
+#ifdef AUDIO_REFLECTIONS
#define MIN_DIST 0.5f
#define CALCULATE_RATIO(value, maxDist, maxRatio) (value > MIN_DIST && value < maxDist ? value / maxDist * maxRatio : 0)
@@ -1403,6 +1404,7 @@ bool8 cSampleManager::UpdateReverb(void)
#undef CALCULATE_RATIO
#undef MIN_DIST
+#endif
fRatio = Clamp(fRatio, 0.0f, 0.6f);