diff options
author | Chris Robinson <[email protected]> | 2012-04-27 07:38:17 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-04-27 07:38:17 -0700 |
commit | 67f1cdfcbe537d8f53e90c73d8a2358fa2138791 (patch) | |
tree | 40d44866f4041fbdb63a4dc49e36af0f82b4eca0 /Alc | |
parent | 549d542a316c1f557c8042d9fc2b409bcd999872 (diff) |
Store the speaker angles in the device
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/panning.c | 3 |
1 files changed, 2 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: |