diff options
author | Chris Robinson <[email protected]> | 2017-05-05 03:19:50 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-05-05 04:54:07 -0700 |
commit | db6f14748c0fce4d43d2e2c27a4c2847638297d1 (patch) | |
tree | 89762c7da402e6c2049957a7de4f3ab21b5bed73 /Alc/ALu.c | |
parent | d82e3be8f753763aaea29fd273d02afb5d7cc1ea (diff) |
Rename RollOff to Rolloff
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1074,7 +1074,7 @@ static void CalcAttnSourceParams(ALvoice *voice, const struct ALvoiceProps *prop { /* If the slot's auxiliary send auto is off, the data sent to the * effect slot is the same as the dry path, sans filter effects */ - RoomRolloff[i] = props->RollOffFactor; + RoomRolloff[i] = props->RolloffFactor; DecayDistance[i] = 0.0f; RoomAirAbsorption[i] = AIRABSORBGAINHF; } @@ -1133,7 +1133,7 @@ static void CalcAttnSourceParams(ALvoice *voice, const struct ALvoiceProps *prop case InverseDistance: if(props->RefDistance > 0.0f) { - ALfloat dist = lerp(props->RefDistance, ClampedDist, props->RollOffFactor); + ALfloat dist = lerp(props->RefDistance, ClampedDist, props->RolloffFactor); if(dist > 0.0f) Attenuation = props->RefDistance / dist; for(i = 0;i < NumSends;i++) { @@ -1151,7 +1151,7 @@ static void CalcAttnSourceParams(ALvoice *voice, const struct ALvoiceProps *prop case LinearDistance: if(props->MaxDistance != props->RefDistance) { - Attenuation = props->RollOffFactor * (ClampedDist-props->RefDistance) / + Attenuation = props->RolloffFactor * (ClampedDist-props->RefDistance) / (props->MaxDistance-props->RefDistance); Attenuation = maxf(1.0f - Attenuation, 0.0f); for(i = 0;i < NumSends;i++) @@ -1171,7 +1171,7 @@ static void CalcAttnSourceParams(ALvoice *voice, const struct ALvoiceProps *prop case ExponentDistance: if(ClampedDist > 0.0f && props->RefDistance > 0.0f) { - Attenuation = powf(ClampedDist/props->RefDistance, -props->RollOffFactor); + Attenuation = powf(ClampedDist/props->RefDistance, -props->RolloffFactor); for(i = 0;i < NumSends;i++) RoomAttenuation[i] = powf(ClampedDist/props->RefDistance, -RoomRolloff[i]); } |