Hello,
I found a problem on Linux when the sound card is not working.
FGSoungMgr don't get the status of the newly created slScheduler and
trap on setMaxConcurrent.
I propose the following patch that solve the problem for me :
Index: soundmgr.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.7/FlightGear/src/Sound/soundmgr.cxx,v
retrieving revision 1.17
diff -u -r1.17 soundmgr.cxx
--- soundmgr.cxx 11 Jan 2002 21:16:07 -0000 1.17
+++ soundmgr.cxx 2 Feb 2002 14:06:22 -0000
@@ -64,14 +64,16 @@
// constructor
FGSoundMgr::FGSoundMgr() {
audio_sched = new slScheduler( 8000 );
- audio_sched -> setMaxConcurrent ( 6 );
+ if ( !audio_sched->notWorking() ) {
+ audio_sched -> setMaxConcurrent ( 6 );
- audio_mixer = new smMixer;
+ audio_mixer = new smMixer;
- SG_LOG( SG_GENERAL, SG_INFO,
- "Rate = " << audio_sched->getRate()
- << " Bps = " << audio_sched->getBps()
- << " Stereo = " << audio_sched->getStereo() );
+ SG_LOG( SG_GENERAL, SG_INFO,
+ "Rate = " << audio_sched->getRate()
+ << " Bps = " << audio_sched->getBps()
+ << " Stereo = " << audio_sched->getStereo() );
+ }
}
// destructor
-Fred
PS: --disable-sound seems to do nothing ! It don't prevent the soundmgr to
be initialised
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel