Dave Culp wrote:
On Saturday 13 May 2006 09:20 am, Justin Smithies wrote:
This is what i've got but if i operate the speedbrake the sound just runs
forever because my speedbrakes in the surface postions never gets to bang
on 1 or bang on 0 .
<speedbrake>
<name>speedbrake</name>
<mode>in-transit</mode>
<path>Sounds/whine.wav</path>
<property>/surface-positions/speedbrake-pos-norm</property>
<volume>
<factor>0.45</factor>
</volume>
</speedbrake>
It looks like you have the volume set to a constant 0.45. Try puting the
property in the <volume> section.
<speedbrake>
<name>speedbrake</name>
<mode>in-transit</mode>
<path>Sounds/whine.wav</path>
<volume>
<property>/surface-positions/speedbrake-pos-norm</property>
<factor>0.45</factor>
</volume>
</speedbrake>
This shouldn't be necessary since he's using the 'in-transit' mode which
means the sound will only get played while the value of property is
changing. So if the property is 1.0 for two frames the sound will stop.
To be honest, I can't find anything wrong in the original section??
Erik
--
http://www.ehtw.info (Dutch) Future of Enschede Airport Twente
http://www.ehofman.com/fgfs FlightGear Flight Simulator
-------------------------------------------------------
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&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel