Menu

#2194 Two volume blocks in a sound config file are usable instead of five.

2020.2
Fixed
High
2020-08-08
2020-03-08
No

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>

Discussion

  • xDraconian

    xDraconian - 2020-07-19
    • labels: --> Sound, XML
     
  • James Turner

    James Turner - 2020-07-20
    • assigned_to: Erik Hofman
     
  • James Turner

    James Turner - 2020-07-20

    Over to Erik to consider.

     
  • Erik Hofman

    Erik Hofman - 2020-07-21

    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
  • legoboyvdlp

    legoboyvdlp - 2020-08-08
    • status: New --> Fixed
    • Milestone: 2019.1 --> 2020.2
     

Log in to post a comment.