aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-10-21 12:48:04 -0700
committerChris Robinson <[email protected]>2009-10-21 12:48:04 -0700
commitbdec1e037f035fe38322879dc5d8e25117ec2171 (patch)
treea347d63ebc44766c814a8df84071c1c2d8c9504a /Alc/ALu.c
parent9924cce4663a38f7c149c5e7c67766091170ad21 (diff)
Remove unnecessary variable
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 608c28c1..29984948 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -820,7 +820,7 @@ another_source:
ALuint DataPosFrac = 0;
ALuint Buffer;
ALbuffer *ALBuffer;
- ALuint Channels, Frequency;
+ ALuint Channels;
ALuint BufferSize;
ALfloat Pitch;
@@ -833,7 +833,6 @@ another_source:
Channels = aluChannelsFromFormat(ALBuffer->format);
DataSize = ALBuffer->size;
DataSize /= Channels * aluBytesFromFormat(ALBuffer->format);
- Frequency = ALBuffer->frequency;
DataPosInt = ALSource->position;
DataPosFrac = ALSource->position_fraction;
@@ -853,7 +852,7 @@ another_source:
CalcSourceParams(ALContext, ALSource, (Channels==1)?AL_TRUE:AL_FALSE,
DrySend, WetSend, &Pitch, &DryGainHF, WetGainHF);
- Pitch = (Pitch*Frequency) / frequency;
+ Pitch = (Pitch*ALBuffer->frequency) / frequency;
if(Channels == 1)
{