From 084df2a229a1d0f776cd8b7f579cb40c1780f893 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 14 Aug 2008 16:14:16 -0700 Subject: Allow setting the EFX doppler factor source property --- OpenAL32/alSource.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenAL32') 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: -- cgit v1.2.3