diff options
author | Chris Robinson <[email protected]> | 2012-02-17 12:32:43 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-02-17 12:32:43 -0800 |
commit | cc2cb1142bf42c5dc6d306e7aa7e794daae09972 (patch) | |
tree | 84558f4d2800085fc63dfa9b0bd0e7a8d63b60af | |
parent | eb8be88866d858d85842882f23defd82603eadd6 (diff) |
Remove unused variables
-rw-r--r-- | Alc/ALu.c | 2 | ||||
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 2 | ||||
-rw-r--r-- | OpenAL32/alSource.c | 2 |
3 files changed, 0 insertions, 6 deletions
@@ -109,7 +109,6 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ALCdevice *Device = ALContext->Device; ALfloat SourceVolume,ListenerGain,MinVolume,MaxVolume; ALbufferlistitem *BufferListItem; - enum DevFmtChannels DevChans; enum FmtChannels Channels; ALfloat (*SrcMatrix)[MAXCHANNELS]; ALfloat DryGain, DryGainHF; @@ -127,7 +126,6 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ALint i, c; /* Get device properties */ - DevChans = Device->FmtChans; NumSends = Device->NumAuxSends; Frequency = Device->Frequency; diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index fdabaeb2..2014fd7a 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -39,12 +39,10 @@ static ALvoid RemoveEffectSlotArray(ALCcontext *Context, ALeffectslot *val); AL_API ALvoid AL_APIENTRY alGenAuxiliaryEffectSlots(ALsizei n, ALuint *effectslots) { ALCcontext *Context; - ALCdevice *Device; Context = GetContextRef(); if(!Context) return; - Device = Context->Device; if(n < 0 || IsBadWritePtr((void*)effectslots, n * sizeof(ALuint))) alSetError(Context, AL_INVALID_VALUE); else diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 68dffb64..af039859 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -54,12 +54,10 @@ static ALint GetSampleOffset(ALsource *Source); AL_API ALvoid AL_APIENTRY alGenSources(ALsizei n,ALuint *sources) { ALCcontext *Context; - ALCdevice *Device; Context = GetContextRef(); if(!Context) return; - Device = Context->Device; if(n < 0 || IsBadWritePtr((void*)sources, n * sizeof(ALuint))) alSetError(Context, AL_INVALID_VALUE); else |