aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-04-27 07:38:17 -0700
committerChris Robinson <[email protected]>2012-04-27 07:38:17 -0700
commit67f1cdfcbe537d8f53e90c73d8a2358fa2138791 (patch)
tree40d44866f4041fbdb63a4dc49e36af0f82b4eca0
parent549d542a316c1f557c8042d9fc2b409bcd999872 (diff)
Store the speaker angles in the device
-rw-r--r--Alc/panning.c3
-rw-r--r--OpenAL32/Include/alMain.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/Alc/panning.c b/Alc/panning.c
index ab827ec1..3d82f9fe 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -166,14 +166,15 @@ ALint aluCart2LUTpos(ALfloat re, ALfloat im)
ALvoid aluInitPanning(ALCdevice *Device)
{
- ALfloat SpeakerAngle[MAXCHANNELS];
const char *layoutname = NULL;
enum Channel *Speaker2Chan;
+ ALfloat *SpeakerAngle;
ALfloat Alpha, Theta;
ALint pos;
ALuint s;
Speaker2Chan = Device->Speaker2Chan;
+ SpeakerAngle = Device->SpeakerAngle;
switch(Device->FmtChans)
{
case DevFmtMono:
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 0802fc32..e778d70b 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -578,6 +578,7 @@ struct ALCdevice_struct
enum Channel DevChannels[MAXCHANNELS];
enum Channel Speaker2Chan[MAXCHANNELS];
+ ALfloat SpeakerAngle[MAXCHANNELS];
ALfloat PanningLUT[LUT_NUM][MAXCHANNELS];
ALuint NumChan;