aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-04-08 18:05:24 -0700
committerChris Robinson <[email protected]>2010-04-08 18:05:24 -0700
commit97b00670f596eff40df7e18d853586d997306790 (patch)
tree42a3d50d18aeb06ccbb804f046172422a7b93b72
parent704b386cc54c2ae5ac46d2400e8e75762c6d46f0 (diff)
Use the proper type for the speaker-to-channel map
-rw-r--r--Alc/ALu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index ba73eda8..60fb17c1 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -116,7 +116,7 @@ static __inline ALvoid aluMatrixVector(ALfloat *vector,ALfloat w,ALfloat matrix[
}
static ALvoid SetSpeakerArrangement(const char *name, ALfloat SpeakerAngle[OUTPUTCHANNELS],
- ALint Speaker2Chan[OUTPUTCHANNELS], ALint chans)
+ Channel Speaker2Chan[OUTPUTCHANNELS], ALint chans)
{
char layout_str[256];
char *confkey, *next;
@@ -176,7 +176,7 @@ static ALvoid SetSpeakerArrangement(const char *name, ALfloat SpeakerAngle[OUTPU
for(i = 0;i < chans;i++)
{
- if(Speaker2Chan[i] == val)
+ if(Speaker2Chan[i] == (Channel)val)
{
val = strtol(sep, NULL, 10);
if(val >= -180 && val <= 180)
@@ -229,7 +229,7 @@ static __inline ALfloat aluLUTpos2Angle(ALint pos)
ALvoid aluInitPanning(ALCdevice *Device)
{
ALfloat SpeakerAngle[OUTPUTCHANNELS];
- ALint Speaker2Chan[OUTPUTCHANNELS];
+ Channel Speaker2Chan[OUTPUTCHANNELS];
ALfloat Alpha, Theta;
ALint pos, offset;
ALfloat maxout;