Andy Ross wrote: > I've been playing with the sound system for the A-4. Neat stuff. I > was getting bitten by some strange behavior, though, which I tracked > to an some uninitialized stack variables in fg_sound.cxx. If a sound > is defined without a specific scaling function (i.e., "just play this > sound"), the volume and pitch numbers can come out with arbitrary, > depending on the stack environment. This might explain some of the > inconsistent reports we hear occasionally about sounds not playing. > The patch is trivial, and included below.
Ah, you already tracked it down. I've had a mail from Curtis asking about this part. Thanks Andy! > > Also, attached is my current a4-sound.xml file, if folks want to try > it. I've tweaked a bunch of things to make it more pleasing to my > ears. The engine pitch is scaled to the N1 RPM and is played at a > roughly constant volume rather than dying off at high thrust, and the > roar scales linearly with thrust rather than with the logarithm of > thrust, which matches my experience on jetliners better (most of the > sound exists only at the highest thrust settings). At idle, all you > hear is the engine whine -- no thrust rumble. The gear lock sounds > plays correctly now when the gear reach minimum extension. > > I really like it -- you can definitely hear the engine spool up and > down now, and associate a given sound with a thrust setting. My > approaches in the A-4 have actually gotten better because of it. I'll > probably continue tweaking in the future, but it's good enough for > government work as-is, IMHO. Great to hear. Erik _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
