From 9377d0f23730ff0d42a870627ea9a75059c481f4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 2 Oct 2014 01:02:25 -0700 Subject: Don't use ComputeAngleGains for SetGains --- OpenAL32/Include/alu.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'OpenAL32/Include/alu.h') diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 136025d1..bf5de4fe 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -224,7 +224,11 @@ void ComputeAngleGains(const ALCdevice *device, ALfloat angle, ALfloat hwidth, A */ inline void SetGains(const ALCdevice *device, ALfloat ingain, ALfloat gains[MaxChannels]) { - ComputeAngleGains(device, 0.0f, F_PI, ingain, gains); + ALuint i; + for(i = 0;i < MaxChannels;i++) + gains[i] = 0.0f; + for(i = 0;i < device->NumSpeakers;i++) + gains[device->Speaker[i].ChanName] = ingain; } -- cgit v1.2.3