Port audio changes from master

This commit is contained in:
Sergeanur
2021-08-18 15:49:06 +03:00
parent dff327df40
commit a13089cd2e
10 changed files with 271 additions and 237 deletions
+2
View File
@@ -1706,6 +1706,7 @@ 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)
@@ -1719,6 +1720,7 @@ cSampleManager::UpdateReverb(void)
#undef CALCULATE_RATIO
#undef MIN_DIST
#endif
fRatio = Clamp(fRatio, 0.0f, 0.6f);