>     In simgear/sound/soundmgr_openal.cxx, "working" is never set to true for
> openal/alut version >= 1 if it worked.

    This should fix my last fix.

    And please make sure to reapply the fix in FGFX::play_message before
testing/committing.

    Thanks.


Pigeon.

Index: simgear/sound/soundmgr_openal.cxx
===================================================================
RCS file: /var/cvs/SimGear-0.3/source/simgear/sound/soundmgr_openal.cxx,v
retrieving revision 1.23
diff -u -r1.23 soundmgr_openal.cxx
--- simgear/sound/soundmgr_openal.cxx   8 Mar 2006 18:16:09 -0000       1.23
+++ simgear/sound/soundmgr_openal.cxx   24 Apr 2006 22:33:16 -0000
@@ -91,8 +91,13 @@
         SG_LOG( SG_GENERAL, SG_ALERT, "Audio initialization failed!" );
         SG_LOG( SG_GENERAL, SG_ALERT, "   "+string(alutGetErrorString(error)));
         working = false;
+        context = 0;
+    }
+    else
+    {
+        working = true;
+        context = alcGetCurrentContext();
     }
-    context = alcGetCurrentContext();
 #else
     if ( (dev = alcOpenDevice( NULL )) != NULL
             && ( context = alcCreateContext( dev, NULL )) != NULL ) {

Reply via email to