Store the speaker angles in the device

This commit is contained in:
Chris Robinson
2012-04-27 07:38:17 -07:00
parent 549d542a31
commit 67f1cdfcbe
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -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:
+1
View File
@@ -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;