Channel angle is already in radians, not degrees

This commit is contained in:
Chris Robinson 2012-03-12 18:29:46 -07:00
parent 335232207d
commit 560f34e3df

View File

@ -282,7 +282,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
/* Get the static HRIR coefficients and delays for this /* Get the static HRIR coefficients and delays for this
* channel. */ * channel. */
GetLerpedHrtfCoeffs(Device->Hrtf, GetLerpedHrtfCoeffs(Device->Hrtf,
0.0f, F_PI/180.0f * chans[c].angle, 0.0f, chans[c].angle,
DryGain*ListenerGain, DryGain*ListenerGain,
ALSource->Params.HrtfCoeffs[c], ALSource->Params.HrtfCoeffs[c],
ALSource->Params.HrtfDelay[c]); ALSource->Params.HrtfDelay[c]);