summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-27 00:15:07 -0800
committerChris Robinson <[email protected]>2010-11-27 00:15:07 -0800
commitd2895c7985c77299617ee0562f53e210e8dd04ca (patch)
treef7292e5f184bb7b758bac5bceb04766626bde2e1 /Alc
parent6abb9d151eef04d5770bbdd584cd7cdc565f970d (diff)
Use the enums in a couple more places
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 7c43b0f3..400903ec 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -80,12 +80,12 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
{
ALfloat SourceVolume,ListenerGain,MinVolume,MaxVolume;
ALbufferlistitem *BufferListItem;
+ enum FmtChannels Channels;
ALfloat DryGain, DryGainHF;
ALfloat WetGain[MAX_SENDS];
ALfloat WetGainHF[MAX_SENDS];
ALint NumSends, Frequency;
ALboolean DupStereo;
- ALint Channels;
ALfloat Pitch;
ALenum Format;
ALfloat cw;
@@ -107,7 +107,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
Pitch = ALSource->flPitch;
/* Calculate the stepping value */
- Channels = 0;
+ Channels = FmtMono;
BufferListItem = ALSource->queue;
while(BufferListItem != NULL)
{
@@ -130,7 +130,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
ALSource->Params.Step = 1;
}
- Channels = aluChannelsFromFormat(ALBuffer->format);
+ Channels = ALBuffer->FmtChannels;
break;
}
BufferListItem = BufferListItem->next;
@@ -150,7 +150,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
break;
}
- if(Channels == 2)
+ if(Channels == FmtStereo)
{
for(i = 0;i < OUTPUTCHANNELS;i++)
ALSource->Params.DryGains[i] = 0.0f;