I can only have two volume blocks in a sound definition file even though
the documentation says I can have five.
I troubleshooted this with the following config file by swithing the order
of the volume blocks which resulted in a different one out of the three
getting discarded. It's always the one in the middle that gets discarded.
I observed this with 2019.1.2 and 2019.2.0.
<propertylist>
<fx></fx></propertylist>
<engine> <name>engine0-front-left</name> <path>Aircraft/F-5E/Sounds/F-5M_In_Idle-left.wav</path> <mode>looped</mode> <condition> <property>sim/current-view/internal</property> </condition> <volume> <property>engines/engine[0]/n2</property> <factor>0.01</factor> </volume> <volume> <property>instrumentation/doors/crew/position-norm</property> <offset>1</offset> <factor>-3</factor> </volume> <volume> <property>controls/engines/engine[0]/throttle</property> <offset>1</offset> <factor>-1</factor> </volume> <pitch> <property>engines/engine[0]/n2</property> <offset>0.686085</offset> <factor>0.00433704</factor> </pitch> <position> <x>-3.1708333333</x> <y>.4994791666667</y> <z>0.93</z> </position> </engine> </fx>
Over to Erik to consider.
The problem I see is this:
The instrumentation/doors/crew/position-norm section ranges from 1.0 (offset) to -2.0 (offset - 3*[property-value]), but it is truncated at 0.0 so the real range will be 1.0 - 0.0
I've checked the code but all sections do get processed so it must be the section parameters that cause this.
Erik
Last edit: Erik Hofman 2020-07-21
Fixed in https://sourceforge.net/p/flightgear/simgear/ci/3643f1c064ec02f33d982d7252b813a286bc12b5/