Fix panning of multi-channel sources

This commit is contained in:
Chris Robinson 2014-11-05 03:06:32 -08:00
parent c834c3fae5
commit e39117467c

View File

@ -35,7 +35,7 @@
void ComputeAngleGains(const ALCdevice *device, ALfloat angle, ALfloat elevation, ALfloat ingain, ALfloat gains[MaxChannels])
{
ALfloat dir[3] = {
-sinf(angle) * cosf(elevation),
sinf(angle) * cosf(elevation),
sinf(elevation),
-cosf(angle) * cosf(elevation)
};