Store the speaker angles in the device
This commit is contained in:
+2
-1
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user