Correctly scale spatialized B-Format sources

This commit is contained in:
Chris Robinson 2019-12-17 22:20:38 -08:00
parent 0a65ed2190
commit 466c6faeb5

View File

@ -843,8 +843,8 @@ void CalcPanningAndFilters(ALvoice *voice, const ALfloat xpos, const ALfloat ypo
CalcAngleCoeffs(ScaleAzimuthFront(az, 1.5f), ev, Spread, coeffs);
}
/* NOTE: W needs to be scaled due to FuMa normalization. */
const float scale0{AmbiScale::FromFuMa[0]};
/* NOTE: W needs to be scaled according to channel scaling. */
const float scale0{GetAmbiScales(voice->mAmbiScaling)[0]};
ComputePanGains(&Device->Dry, coeffs, DryGain*scale0,
voice->mChans[0].mDryParams.Gains.Target);
for(ALuint i{0};i < NumSends;i++)