diff options
author | Chris Robinson <[email protected]> | 2010-03-14 03:23:18 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-03-14 03:23:18 -0700 |
commit | 1f2d3a013206f088b11ae6897e3819ec091ed78f (patch) | |
tree | aaf25bd4b64e2f093c355063165d10bff1eb7b55 | |
parent | c23e4ed412196e3632d0143be2d67fc2916e4fa8 (diff) |
Remove duplication of setting source angles
-rw-r--r-- | OpenAL32/alSource.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index a2375d49..cf859e00 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -520,6 +520,8 @@ ALAPI ALvoid ALAPIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue) { case AL_MAX_DISTANCE: case AL_ROLLOFF_FACTOR: + case AL_CONE_INNER_ANGLE: + case AL_CONE_OUTER_ANGLE: case AL_REFERENCE_DISTANCE: alSourcef(source, eParam, (ALfloat)lValue); break; @@ -534,26 +536,6 @@ ALAPI ALvoid ALAPIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue) alSetError(AL_INVALID_VALUE); break; - case AL_CONE_INNER_ANGLE: - if(lValue >= 0 && lValue <= 360) - { - pSource->flInnerAngle = (float)lValue; - pSource->NeedsUpdate = AL_TRUE; - } - else - alSetError(AL_INVALID_VALUE); - break; - - case AL_CONE_OUTER_ANGLE: - if(lValue >= 0 && lValue <= 360) - { - pSource->flOuterAngle = (float)lValue; - pSource->NeedsUpdate = AL_TRUE; - } - else - alSetError(AL_INVALID_VALUE); - break; - case AL_LOOPING: if(lValue == AL_FALSE || lValue == AL_TRUE) pSource->bLooping = (ALboolean)lValue; |