From 97b00670f596eff40df7e18d853586d997306790 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 8 Apr 2010 18:05:24 -0700 Subject: Use the proper type for the speaker-to-channel map --- Alc/ALu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Alc') 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; -- cgit v1.2.3