rcbarend
Members
-
Joined
-
Last visited
Solutions
-
rcbarend's post in progressive volume with Doug Dawson's "dsd_fsx_xml_sound" gauge was marked as the answerHi Jean,
Yes, perfectly possible what you want, but you need the latest version of Doug's soundgauge (V5.2.0, dated Aug. 26th 2014) from his website.
With this version you can change the volume of each soundfile individually, in a much simpler way then with the ***_volume_in Lvar.
See the documentation in the zip file.
In the gauge: <Element> <Select> <Value> (A:SIM ON GROUND,bool) ! if{ 2 (>L:buff1,number) } els{ 0 (>L:buff1,number) } (A:INCIDENCE ALPHA,degrees) 9 - 15 9 - / 0 max 1 min 3000 * 3000 - (>L:buff1_volume,number) </Value> </Select> </Element> and in the .ini file: [Sounds] Sound00= "YourSoundfile" [LVars] Lvar00=buff1 [Volume_Variables] Lvar00=buff1_volume So the sound is only On when aircraft is in the air, - with min. vol (-3000, almost inaudible) when INCIDENCE ALPHA < 9 - with max. vol (0) when INCIDENCE ALPHA > 15 - and volume lineairly between min and max when INCIDENCE ALPHA between 9 and 15. Another substantial improvement of Doug's great gauge, since you don't need to hassle with the common volume_in Lvar (controlled by the soundcontrol-Lvar) anymore.
Which makes volume/pan control a lot easier to code.
You can even add a test to have the sound audible only in a certain View mode, using Lvar (L:ViewSystemStatus,number).
Rob