aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-08-21 00:30:14 -0700
committerChris Robinson <[email protected]>2017-08-21 00:30:14 -0700
commit921a820867f5b5683858247d0e9c4c42241c65f0 (patch)
tree87182826a5b8167b09226c5fa8d8bb115f539494
parente7c4681e9a57c60b6432b515681df6c0d153d1da (diff)
Meters per unit can't be 0
-rw-r--r--Alc/ALu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 3f768ea1..d5e85873 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -497,7 +497,7 @@ static void CalcPanningAndFilters(ALvoice *voice, const ALfloat Distance, const
*/
ALfloat coeffs[MAX_AMBI_COEFFS];
- if(Device->AvgSpeakerDist > 0.0f && Listener->Params.MetersPerUnit > 0.0f)
+ if(Device->AvgSpeakerDist > 0.0f)
{
ALfloat mdist = Distance * Listener->Params.MetersPerUnit;
ALfloat w0 = SPEEDOFSOUNDMETRESPERSEC /
@@ -793,7 +793,7 @@ static void CalcPanningAndFilters(ALvoice *voice, const ALfloat Distance, const
ALfloat w0 = 0.0f;
/* Calculate NFC filter coefficient if needed. */
- if(Device->AvgSpeakerDist > 0.0f && Listener->Params.MetersPerUnit > 0.0f)
+ if(Device->AvgSpeakerDist > 0.0f)
{
ALfloat mdist = Distance * Listener->Params.MetersPerUnit;
ALfloat w1 = SPEEDOFSOUNDMETRESPERSEC /