Enable doppler on platforms other than WIN32.
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Sat, 17 Apr 2004 01:14:35 +0000 (01:14 +0000)
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Sat, 17 Apr 2004 01:14:35 +0000 (01:14 +0000)
intern/SoundSystem/openal/SND_OpenALDevice.cpp

index 199e791dd64421cd17b16bd731ca7a01d5cc6a4e..9bdfeb73844b09d734affcc444add8275f75b4a6 100644 (file)
@@ -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