diff options
author | Chris Robinson <[email protected]> | 2010-08-07 06:57:31 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-08-07 06:57:31 -0700 |
commit | 8003278a5589c6300650710be924d596791946ac (patch) | |
tree | 2ff52972421bdb6e726bb5f99aca357ed5592dcb /OpenAL32 | |
parent | 5f22d30fc91e677933e12034979f42f74c4f653d (diff) |
Combine non-attenuated source calculation functions
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alu.h | 1 | ||||
-rw-r--r-- | OpenAL32/alSource.c | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index fe2f42ba..c77a0129 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -188,7 +188,6 @@ ALvoid aluInitPanning(ALCdevice *Device); ALvoid CalcSourceParams(struct ALsource *ALSource, const ALCcontext *ALContext); ALvoid CalcNonAttnSourceParams(struct ALsource *ALSource, const ALCcontext *ALContext); -ALvoid CalcNonAttnStereoSourceParams(struct ALsource *ALSource, const ALCcontext *ALContext); ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size); ALvoid aluHandleDisconnect(ALCdevice *device); diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 7bd92842..1e320e19 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -576,8 +576,6 @@ AL_API ALvoid AL_APIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue) if(aluChannelsFromFormat(buffer->format) == 1) Source->Update = CalcSourceParams; - else if(aluChannelsFromFormat(buffer->format) == 2) - Source->Update = CalcNonAttnStereoSourceParams; else Source->Update = CalcNonAttnSourceParams; @@ -1604,8 +1602,6 @@ AL_API ALvoid AL_APIENTRY alSourceQueueBuffers(ALuint source, ALsizei n, const A Format = buffer->eOriginalFormat; if(aluChannelsFromFormat(buffer->format) == 1) Source->Update = CalcSourceParams; - else if(aluChannelsFromFormat(buffer->format) == 2) - Source->Update = CalcNonAttnStereoSourceParams; else Source->Update = CalcNonAttnSourceParams; Source->NeedsUpdate = AL_TRUE; |