diff options
-rw-r--r-- | Alc/panning.c | 3 | ||||
-rw-r--r-- | OpenAL32/Include/alMain.h | 1 |
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; |