From ccc0e30fffb6ea25dbe53a68a25a9dfd4f5de380 Mon Sep 17 00:00:00 2001 From: Kester Maddock Date: Sat, 17 Apr 2004 01:14:35 +0000 Subject: [PATCH] Enable doppler on platforms other than WIN32. --- intern/SoundSystem/openal/SND_OpenALDevice.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/intern/SoundSystem/openal/SND_OpenALDevice.cpp b/intern/SoundSystem/openal/SND_OpenALDevice.cpp index 199e791dd64..9bdfeb73844 100644 --- a/intern/SoundSystem/openal/SND_OpenALDevice.cpp +++ b/intern/SoundSystem/openal/SND_OpenALDevice.cpp @@ -569,11 +569,8 @@ void SND_OpenALDevice::StopObject(int id) const float obvel[3] = {0,0,0}; alSourcefv(m_sources[id], AL_POSITION, obpos); - -#ifdef WIN32 alSourcefv(m_sources[id], AL_VELOCITY, obvel); -#endif - + alSourcef(m_sources[id], AL_GAIN, 1.0); alSourcef(m_sources[id], AL_PITCH, 1.0); alSourcei(m_sources[id], AL_LOOPING, AL_FALSE); @@ -693,11 +690,8 @@ void SND_OpenALDevice::SetObjectTransform(int id, alSourcefv(m_sources[id], AL_POSITION, obpos); -#ifdef WIN32 velocity.getValue(obvel); alSourcefv(m_sources[id], AL_VELOCITY, obvel); -#endif - } void SND_OpenALDevice::PlayCD(int track) const