Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-04-17 05:14:35 +0400
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-04-17 05:14:35 +0400
commitccc0e30fffb6ea25dbe53a68a25a9dfd4f5de380 (patch)
tree08df18b9b671d574ccf6d74c1101c49b8f3338ee /intern
parentaa5500680d9fcf0ef3fb20382e24b48399afb3f5 (diff)
Enable doppler on platforms other than WIN32.
Diffstat (limited to 'intern')
-rw-r--r--intern/SoundSystem/openal/SND_OpenALDevice.cpp8
1 files changed, 1 insertions, 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