diff options
Diffstat (limited to 'OpenAL32/alSource.c')
-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; |