Re: [Flightgear-devel] [PATCH] simgear patch that fixes my whole last no sound fix

2006-04-25 Thread Mathias Fröhlich
On Tuesday 25 April 2006 01:12, Pigeon wrote:
> > 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.
Finally applied.
Appears to work for me.
Please tell me if you experience any problems with that.

Greetings

   Mathias

-- 
Mathias Fröhlich, email: [EMAIL PROTECTED]


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] [PATCH] simgear patch that fixes my whole last no sound fix

2006-04-24 Thread Pigeon

> 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 -   1.23
+++ simgear/sound/soundmgr_openal.cxx   24 Apr 2006 22:33:16 -
@@ -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 ) {