* merge r22237 (from soundsystem branch) to have b25 still compile against new openal on windows.

NOTE: Windows users should update lib/windows/openal from SVN.
This commit is contained in:
Nathan Letwory 2009-08-06 08:04:35 +00:00
parent 3af26a09e9
commit 6f1ec5e3b9

@ -372,9 +372,6 @@ SND_OpenALDevice::SND_OpenALDevice()
{ {
#ifdef __APPLE__ #ifdef __APPLE__
ALenum alc_error = ALC_NO_ERROR; // openal_2.12 ALenum alc_error = ALC_NO_ERROR; // openal_2.12
#elif defined(_WIN32)
// alcGetError has no arguments on windows
ALenum alc_error = alcGetError(); // openal_2.14+
#else #else
ALenum alc_error = alcGetError(NULL); // openal_2.14+ ALenum alc_error = alcGetError(NULL); // openal_2.14+
#endif #endif
@ -410,9 +407,6 @@ void SND_OpenALDevice::UseCD(void) const
void SND_OpenALDevice::MakeCurrent() const void SND_OpenALDevice::MakeCurrent() const
{ {
#ifdef WIN32
alcMakeContextCurrent(m_context);
#endif
} }
@ -614,11 +608,7 @@ void SND_OpenALDevice::InitListener()
// have the same settings) // have the same settings)
float lispos[3] = {0,0,0}; float lispos[3] = {0,0,0};
float lisvel[3] = {0,0,0}; float lisvel[3] = {0,0,0};
#ifdef WIN32
float lisori[6] = {0,1,0,0,0,1};
#else
float lisori[6] = {0,0,1,0,-1,0}; float lisori[6] = {0,0,1,0,-1,0};
#endif
alListenerfv(AL_POSITION, lispos); alListenerfv(AL_POSITION, lispos);
alListenerfv(AL_VELOCITY, lisvel); alListenerfv(AL_VELOCITY, lisvel);