mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 09:23:17 +02:00
group constants in audio mixer gain computation
This commit is contained in:
parent
e7e550d78c
commit
eb00c7ba11
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ float computeGain(const AvatarAudioStream& listeningNodeStream, const Positional
|
|||
const float MAX_OFF_AXIS_ATTENUATION = 0.2f;
|
||||
const float OFF_AXIS_ATTENUATION_STEP = (1 - MAX_OFF_AXIS_ATTENUATION) / 2.0f;
|
||||
float offAxisCoefficient = MAX_OFF_AXIS_ATTENUATION +
|
||||
(OFF_AXIS_ATTENUATION_STEP * (angleOfDelivery / PI_OVER_TWO));
|
||||
(angleOfDelivery * (OFF_AXIS_ATTENUATION_STEP / PI_OVER_TWO));
|
||||
|
||||
gain *= offAxisCoefficient;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue