aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-09-23 16:51:30 -0700
committerChris Robinson <[email protected]>2010-09-23 16:51:30 -0700
commite308694521401b6450fac59fd79953027b6dbf11 (patch)
tree198212c974db6e03f060d1647e7134cd764a3063 /Alc
parent7e498012ffa6f73f2b86ec41644ba54effeac405 (diff)
Remove an unnecessary variable
Diffstat (limited to 'Alc')
-rw-r--r--Alc/mixer.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index 679d41ed..3b550ff6 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -311,7 +311,7 @@ static __inline ALfloat cos_lerp16(ALfloat val1, ALfloat val2, ALint frac)
#define MIX_MONO(S) do { \
- switch(Resampler) \
+ switch(Source->Resampler) \
{ \
case POINT_RESAMPLER: \
DO_MIX_MONO(S,point); break; \
@@ -332,7 +332,7 @@ static __inline ALfloat cos_lerp16(ALfloat val1, ALfloat val2, ALint frac)
BACK_LEFT, BACK_RIGHT \
}; \
\
- switch(Resampler) \
+ switch(Source->Resampler) \
{ \
case POINT_RESAMPLER: \
DO_MIX_STEREO(S,point); break; \
@@ -349,7 +349,7 @@ static __inline ALfloat cos_lerp16(ALfloat val1, ALfloat val2, ALint frac)
#define MIX_MC(S,...) do { \
const int chans[] = { __VA_ARGS__ }; \
\
- switch(Resampler) \
+ switch(Source->Resampler) \
{ \
case POINT_RESAMPLER: \
DO_MIX_MC(S,point); break; \
@@ -407,7 +407,6 @@ static void MixSource(ALsource *Source, ALCcontext *Context,
ALfloat WetSend[MAX_SENDS];
ALint increment;
ALuint DataPosInt, DataPosFrac;
- resampler_t Resampler;
ALuint BuffersPlayed;
ALboolean Looping;
ALenum State;
@@ -419,7 +418,6 @@ static void MixSource(ALsource *Source, ALCcontext *Context,
}
/* Get source info */
- Resampler = Source->Resampler;
State = Source->state;
BuffersPlayed = Source->BuffersPlayed;
DataPosInt = Source->position;