mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 22:33:34 +02:00
Cleanup
This commit is contained in:
parent
59ac2a789f
commit
1ee608ad2c
1 changed files with 1 additions and 1 deletions
|
@ -1309,7 +1309,7 @@ float AudioClient::gainForSource(float distance, float volume) {
|
|||
|
||||
// attenuate based on distance
|
||||
if (distance >= ATTENUATION_BEGINS_AT_DISTANCE) {
|
||||
gain /= distance; // attenuation = -6dB * log2(distance)
|
||||
gain /= (distance/ATTENUATION_BEGINS_AT_DISTANCE); // attenuation = -6dB * log2(distance)
|
||||
}
|
||||
|
||||
return gain;
|
||||
|
|
Loading…
Reference in a new issue