From 0f933eb84796d46debc7c19ae33c28f6f9c411cc Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 16 May 2009 12:56:09 +0000 Subject: [PATCH] * Fix for another OpenAL compile error on MSVC. --- intern/SoundSystem/openal/SND_OpenALDevice.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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) {