[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22237] branches/soundsystem/intern/ SoundSystem/openal/SND_OpenALDevice.cpp: Update for new windows OpenAL libs .

Jörg Müller nexyon at gmail.com
Wed Aug 5 16:12:49 CEST 2009


Revision: 22237
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22237
Author:   nexyon
Date:     2009-08-05 16:12:49 +0200 (Wed, 05 Aug 2009)

Log Message:
-----------
Update for new windows OpenAL libs.

Modified Paths:
--------------
    branches/soundsystem/intern/SoundSystem/openal/SND_OpenALDevice.cpp

Modified: branches/soundsystem/intern/SoundSystem/openal/SND_OpenALDevice.cpp
===================================================================
--- branches/soundsystem/intern/SoundSystem/openal/SND_OpenALDevice.cpp	2009-08-05 14:10:29 UTC (rev 22236)
+++ branches/soundsystem/intern/SoundSystem/openal/SND_OpenALDevice.cpp	2009-08-05 14:12:49 UTC (rev 22237)
@@ -372,9 +372,6 @@
 	{
 #ifdef __APPLE__
 		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
 		ALenum alc_error = alcGetError(NULL);	// openal_2.14+
 #endif
@@ -410,9 +407,6 @@
 
 void SND_OpenALDevice::MakeCurrent() const
 {
-#ifdef WIN32
-	alcMakeContextCurrent(m_context);
-#endif
 }
 
 
@@ -614,11 +608,7 @@
 	// have the same settings)
 	float lispos[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};
-#endif
 
 	alListenerfv(AL_POSITION, lispos);
 	alListenerfv(AL_VELOCITY, lisvel);





More information about the Bf-blender-cvs mailing list