Port audio changes from master
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user