On Wed, 2002-04-24 at 05:01, Erik Hofman wrote:
> Sam Varner wrote:
> > On Tue, 2002-04-23 at 04:41, Erik Hofman wrote:
> >
> >>Sam Varner wrote:
> >>
> >>>How do I get sound for my FDM? I have an engine model and I can get the
> >>>rotational speed. How do I use this to get the pitch of the engine
> >>>sample?
> >>>
> >>You can take a look at FlightGear/Aircraft/c172/c172-sound.xml
> >>
> >>for engine you would see:
> >>
> >><pitch>
> >> <property>/engines/engine/rpm</property>
> >>
> >>This means you would have to assign the right (engine) rpm to that property:
> >>
> >> fgSetFloat("/engines/engine/rpm", my_rpm);
> >>
> >
> > Thanks, Erik. I'm making noise now, but the pitch stops going up at
> > about 4000 RPM. The engine speed guage keeps going up (and around and
> > around:) but the sound doesn't change. I haven't found where this limit
> > is set. Any ideas?
>
> It's this line in the c172-sound.xml file:
>
> <pitch>
> <max>5.0</max>
I don't seem to have a c172-sound.xml file. Also, a grep-find in the
FlightGear directory (from version 0.7.9) doesn't turn up any <pitch>
tags.
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel