<?xml version="1.0" encoding="ISO-8859-1"?>

<PropertyList>

  <fx>

    <!-- Engine 1 -->
    <crank>
      <name>engstart1</name>
      <path>starter.wav</path>
      <condition>
        <property>controls/engines/engine[0]/starter</property>
      </condition>
      <volume>
        <offset>-0.4</offset>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </crank>

    <engine>
      <name>engine1</name>
      <mode>looped</mode>
      <path>running.wav</path>
      <condition>
        <property>engines/engine[0]/running</property>
        <not><property>controls/engines/engine[0]/cutoff</property></not>
      </condition>
      <volume>
        <offset>-0.50</offset>
      </volume>
      <pitch>
        <property>engines/engine[0]/running</property>
        <factor>1.0</factor>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <engine>
      <name>enginerun1</name>
      <mode>looped</mode>
      <path>running.wav</path>
      <condition>
        <property>engines/engine[0]/running</property>
        <not><property>controls/engines/engine[0]/cutoff</property></not>
        <greater-than>
          <property>engines/engine[0]/rpm</property>
          <value>150</value>
        </greater-than>
        <less-than>
          <property>engines/engine[0]/rpm</property>
          <value>3000</value>
        </less-than>
      </condition>
      <volume>
        <property>engines/engine[0]/rpm</property>
        <factor>0.00033</factor>
        <min>0.2</min>
        <max>1.0</max>
        <offset>0.0</offset>
      </volume>
      <pitch>
        <property>engines/engine[0]/rpm</property>
        <factor>0.00033</factor>
        <min>0.0</min>
        <max>1.0</max>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <propeller>
      <name>propeller1</name>
      <mode>looped</mode>
      <path>propeller.wav</path>
      <condition>
        <property>engines/engine[0]/running</property>
        <not><property>controls/engines/engine[0]/cutoff</property></not>
        <greater-than>
          <property>engines/engine[0]/rpm</property>
          <value>100</value>
        </greater-than>
      </condition>
      <volume>
        <property>engines/engine[0]/rpm</property>
        <factor>0.0005</factor>
      </volume>
      <pitch>
        <property>engines/engine[0]/rpm</property>
        <offset>0.2</offset>
        <factor>0.0008</factor>
        <min>0.2</min>
        <max>1.0</max>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </propeller>

    <!-- Engine 2 -->
    <crank>
      <name>engstart2</name>
      <path>starter.wav</path>
      <condition>
        <property>controls/engines/engine[1]/starter</property>
      </condition>
      <volume>
        <offset>-0.4</offset>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </crank>

    <engine>
      <name>engine2</name>
      <mode>looped</mode>
      <path>running.wav</path>
      <condition>
        <property>engines/engine[1]/running</property>
        <not><property>controls/engines/engine[1]/cutoff</property></not>
      </condition>
      <volume>
        <offset>-0.50</offset>
      </volume>
      <pitch>
        <property>engines/engine[1]/running</property>
        <factor>1.0</factor>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <engine>
      <name>enginerun2</name>
      <mode>looped</mode>
      <path>running.wav</path>
      <condition>
        <property>engines/engine[1]/running</property>
        <not><property>controls/engines/engine[1]/cutoff</property></not>
        <greater-than>
          <property>engines/engine[1]/rpm</property>
          <value>150</value>
        </greater-than>
        <less-than>
          <property>engines/engine[1]/rpm</property>
          <value>3000</value>
        </less-than>
      </condition>
      <volume>
        <property>engines/engine[1]/rpm</property>
        <factor>0.00033</factor>
        <min>0.2</min>
        <max>1.0</max>
        <offset>0.0</offset>
      </volume>
      <pitch>
        <property>engines/engine[1]/rpm</property>
        <factor>0.00033</factor>
        <min>0.0</min>
        <max>1.0</max>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <propeller>
      <name>propeller2</name>
      <mode>looped</mode>
      <path>propeller.wav</path>
      <condition>
        <property>engines/engine[1]/running</property>
        <not><property>sim/current-view/internal</property></not>
        <greater-than>
          <property>engines/engine[1]/rpm</property>
          <value>100</value>
        </greater-than>
      </condition>
      <volume>
        <property>engines/engine[1]/rpm</property>
        <factor>0.0005</factor>
      </volume>
      <pitch>
        <property>engines/engine[1]/rpm</property>
        <offset>0.2</offset>
        <factor>0.0008</factor>
        <min>0.2</min>
        <max>1.0</max>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </propeller>

    <!-- ************************************************** -->
    <rumble>
      <name>rumble</name>
      <mode>looped</mode>
      <path>Sounds/rumble.wav</path>
      <condition>
        <or>
          <property>gear/gear[0]/wow</property>
          <property>gear/gear[1]/wow</property>
          <property>gear/gear[2]/wow</property>
        </or>
      </condition>
      <volume>
        <property>velocities/airspeed-kt</property>
        <type>log</type>
        <factor>0.5</factor>
      </volume>
    </rumble>

    <gear>
      <name>gear</name>
      <mode>in-transit</mode>
      <path>Sounds/gear.wav</path>
      <property>gear/gear[0]/position-norm</property>
      <pitch>
        <internal>dt_play</internal>
        <offset>1.0</offset>
        <factor>-0.001</factor>
      </pitch>
    </gear>

    <gear>
      <name>gear-lock</name>
      <path>Sounds/gear-lck.wav</path>
      <condition>
        <greather-than>
          <property>gear/gear[0]/position-norm</property>
          <value>0.01</value>
        </greather-than>
        <less-than>
          <property>gear/gear[0]/position-norm</property>
          <value>0.1</value>
        </less-than>
      </condition>
    </gear>

    <squeal>
      <name>squeal</name>
      <path>Sounds/squeal.wav</path>
      <condition>
        <or>
          <property>gear/gear[0]/wow</property>
          <property>gear/gear[1]/wow</property>
          <property>gear/gear[2]/wow</property>
        </or>
      </condition>
      <volume>
        <property>velocities/speed-down-fps</property>
        <factor>0.05</factor>
        <min>0.1</min>
      </volume>
      <volume>
        <property>velocities/airspeed-kt</property>
        <factor>0.01</factor>
        <offset>0.4</offset>
      </volume>
      <pitch>
        <offset>1.25</offset>
      </pitch>
    </squeal>

    <flap>
      <name>flaps</name>
      <mode>in-transit</mode>
      <path>Sounds/flaps.wav</path>
      <property>surface-positions/flap-pos-norm</property>
      <volume>
        <offset>0.25</offset>
      </volume>
    </flap>

    <wind>
      <name>wind</name>
      <mode>looped</mode>
      <path>Sounds/wind.wav</path>
      <property>velocities/airspeed-kt</property>
      <volume>
        <property>position/altitude-ft</property>
        <factor>-0.000015</factor>
        <offset>1.0</offset>
        <min>0.1</min>
        <max>1.0</max>
      </volume>
      <volume>
        <property>velocities/airspeed-kt</property>
        <factor>0.0015</factor>
        <min>0.03</min>
        <max>0.25</max>
      </volume>
      <pitch>
        <property>velocities/airspeed-kt</property>
        <factor>0.01</factor>
        <offset>1.25</offset>
      </pitch>
    </wind>

    <stall>
      <name>stall</name>
      <path>Sounds/stall.wav</path>
      <property>sim/aero/alarms/stall-warning</property>
      <volume>
        <property>velocities/airspeed-kt</property>
        <min>30.0</min>
      </volume>
    </stall>

    <click>
      <name>Nav Lights ON</name>
      <path>click.wav</path>
      <condition>
        <property>controls/lighting/nav-lights</property>
      </condition>
      <volume>
        <factor>0.6</factor>
      </volume>
    </click>

    <click>
      <name>Nav Lights OFF</name>
      <path>click.wav</path>
      <condition>
        <not>
          <property>controls/lighting/nav-lights</property>
        </not>
      </condition>
      <volume>
        <factor>0.6</factor>
      </volume>
    </click>

    <click>
      <name>Land Lights ON</name>
      <path>click.wav</path>
      <condition>
        <property>controls/lighting/landing-lights</property>
      </condition>
      <volume>
        <factor>0.6</factor>
      </volume>
    </click>

    <click>
      <name>Land Lights OFF</name>
      <path>click.wav</path>
      <condition>
        <not>
          <property>controls/lighting/landing-lights</property>
        </not>
      </condition>
      <volume>
        <factor>0.6</factor>
      </volume>
    </click>

    <click>
      <name>Instr Lights ON</name>
      <path>click.wav</path>
      <condition>
        <property>controls/lighting/instrument-lights</property>
      </condition>
      <volume>
        <factor>0.6</factor>
      </volume>
    </click>

    <click>
      <name>Instr Lights OFF</name>
      <path>click.wav</path>
      <condition>
        <not>
          <property>controls/lighting/instrument-lights</property>
        </not>
      </condition>
      <volume>
        <factor>0.6</factor>
      </volume>
    </click>

    <kap140-disengage>
      <name>KAP140 disengage</name>
      <path>kap140-disengage.wav</path>
      <condition>
        <or>
          <equals>
            <property>autopilot/kap140/panel/state</property>
            <value>3</value>
          </equals>
          <property>autopilot/kap140/panel/ap-timer</property>
        </or>
      </condition>
      <volume><factor>0.2</factor></volume>
      <position>
        <x>-0.444</x>
        <y> 0.229</y>
        <z> 0.312</z>
      </position>
    </kap140-disengage>

    <kap140-alert>
      <name>KAP140 altitude alerter</name>
      <path>kap140-alert.wav</path>
      <condition>
        <property>autopilot/kap140/panel/alt-alert-sound</property>
      </condition>
      <volume><factor>0.2</factor></volume>
      <position>
        <x>-0.444</x>
        <y> 0.229</y>
        <z> 0.312</z>
      </position>
    </kap140-alert>

    <!-- DOOR -->
    <door>
      <name>Open crew door</name>
      <path>DoorOpen.wav</path>
      <condition>
        <greater-than>
          <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
          <property>sim/multiplay/generic/float[0]</property>
          <value>0.1</value>
        </greater-than>
      </condition>
      <volume>
        <factor>0.8</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>Close crew door</name>
      <path>DoorClosed.wav</path>
      <condition>
        <equals>
          <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
          <property>sim/multiplay/generic/float[0]</property>
          <value>0</value>
        </equals>
      </condition>
      <volume>
        <factor>1</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>Open passenger door</name>
      <path>DoorOpen.wav</path>
      <condition>
        <greater-than>
          <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
          <property>sim/multiplay/generic/float[1]</property>
          <value>0.1</value>
        </greater-than>
      </condition>
      <volume>
        <factor>0.8</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>Close passenger door</name>
      <path>DoorClosed.wav</path>
      <condition>
        <equals>
          <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
          <property>sim/multiplay/generic/float[1]</property>
          <value>0</value>
        </equals>
      </condition>
      <volume>
        <factor>1</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>Open cargo door</name>
      <path>DoorOpen.wav</path>
      <condition>
        <greater-than>
          <!-- <property>sim/model/door-positions/cargo/position-norm</property> -->
          <property>sim/multiplay/generic/float[11]</property>
          <value>0.1</value>
        </greater-than>
      </condition>
      <volume>
        <factor>0.8</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>Close cargo door</name>
      <path>DoorClosed.wav</path>
      <condition>
        <equals>
          <!-- <property>sim/model/door-positions/cargo/position-norm</property> -->
          <property>sim/multiplay/generic/float[11]</property>
          <value>0</value>
        </equals>
      </condition>
      <volume>
        <factor>1</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <rain>
      <name>rain</name>
      <mode>looped</mode>
      <path>rain.wav</path>
      <condition>
        <greater-than>
          <property>environment/metar/rain-norm</property>
          <value>0.2</value>
        </greater-than>
      </condition>
      <volume>
        <property>environment/metar/rain-norm</property>
        <factor>1.00</factor>
        <offset>0.00</offset>
        <min>0.4</min>
        <max>0.9</max>
      </volume>
      <pitch>
        <property>velocities/airspeed-kt</property>
        <factor>0.001</factor>
        <offset>1.0</offset>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </rain>

  </fx>

</PropertyList>
