aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-08-14 16:14:16 -0700
committerChris Robinson <[email protected]>2008-08-14 16:14:16 -0700
commit084df2a229a1d0f776cd8b7f579cb40c1780f893 (patch)
tree83160444f4bbf048c9a8be548bf2468538d21def /OpenAL32
parent22557070ec4852d64ad153f5cac907f84119702c (diff)
Allow setting the EFX doppler factor source property
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alSource.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index d7095f0f..b5e36ea6 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -367,6 +367,13 @@ ALAPI ALvoid ALAPIENTRY alSourcef(ALuint source, ALenum eParam, ALfloat flValue)
alSetError(AL_INVALID_VALUE);
break;
+ case AL_DOPPLER_FACTOR:
+ if (flValue >= 0.0f && flValue <= 1.0f)
+ pSource->DopplerFactor = flValue;
+ else
+ alSetError(AL_INVALID_VALUE);
+ break;
+
case AL_SEC_OFFSET:
case AL_SAMPLE_OFFSET:
case AL_BYTE_OFFSET: