diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-05-16 16:56:09 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-05-16 16:56:09 +0400 |
commit | 0f933eb84796d46debc7c19ae33c28f6f9c411cc (patch) | |
tree | f85a789fc0ff4bb5d3673b3a60f8a3a5067d58b0 | |
parent | b063d2f6212d181a9a766b2e1138336a11519463 (diff) |
* Fix for another OpenAL compile error on MSVC.
-rw-r--r-- | intern/SoundSystem/openal/SND_OpenALDevice.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/SoundSystem/openal/SND_OpenALDevice.cpp b/intern/SoundSystem/openal/SND_OpenALDevice.cpp index 6b0e863e73d..424a05246ac 100644 --- a/intern/SoundSystem/openal/SND_OpenALDevice.cpp +++ b/intern/SoundSystem/openal/SND_OpenALDevice.cpp @@ -645,7 +645,11 @@ int SND_OpenALDevice::GetPlayState(int id) int alstate = 0; int result = 0; +#ifdef __APPLE__ alGetSourcei(m_sources[id], AL_SOURCE_STATE, &alstate); +#else + alGetSourceiv(m_sources[id], AL_SOURCE_STATE, &alstate); +#endif switch(alstate) { |