6 mixer channels aren't enough. We have 2 or more engines, wind, squeal, stall warning, flap sound, gear retract/rumble sound, ATC voice, ... If more than 6 sounds are to be played, plib's scheduler drops the ones with lowest priority. That can be almost any sound (we currently use only priorities 0 and 1) so we (I?) often get ugly skips. I suggest to use the max number---currently 10 (defined in plib/src/sl/sl.h:441). This will only make the scheduler slower if the number of sounds to play actually exceeds 6, and then a (hardly noticeable) slowdown will probably be less annoying than arbitrary sound skips. Plib's SL_MAX_MIXERINPUTS will probably only grow as computers become faster, which should be exactly what we want, anyway.
m. RCS file: /var/cvs/SimGear-0.3/SimGear/simgear/sound/soundmgr.cxx,v retrieving revision 1.3 diff -u -p -r1.3 soundmgr.cxx --- soundmgr.cxx 3 Jun 2003 19:37:21 -0000 1.3 +++ soundmgr.cxx 20 Jun 2003 15:10:06 -0000 @@ -107,7 +107,7 @@ SGSoundMgr::SGSoundMgr() { if ( audio_sched->notWorking() ) { SG_LOG( SG_GENERAL, SG_ALERT, "Audio initialization failed!" ); } else { - audio_sched -> setMaxConcurrent ( 6 ); + audio_sched -> setMaxConcurrent ( SL_MAX_MIXERINPUTS ); audio_mixer = new smMixer; _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel