diff options
author | Chris Robinson <[email protected]> | 2010-04-08 18:05:24 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-04-08 18:05:24 -0700 |
commit | 97b00670f596eff40df7e18d853586d997306790 (patch) | |
tree | 42a3d50d18aeb06ccbb804f046172422a7b93b72 | |
parent | 704b386cc54c2ae5ac46d2400e8e75762c6d46f0 (diff) |
Use the proper type for the speaker-to-channel map
-rw-r--r-- | Alc/ALu.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |