<?xml version="1.0"?>

<PropertyList>

  <fx>

    <!-- ENGINES 1 & 2 -->
    <crank>
      <name>engstart1</name>
      <path>Sounds/engstart.wav</path>
      <condition>
        <or>
          <property>/engines/engine[0]/cranking</property>
          <property>/engines/engine[1]/cranking</property>
        </or>
      </condition>
      <position>
        <x> 15.0 </x>
        <y> -5.0 </y>
        <z>  0.0 </z>
      </position>
      <volume>
        <offset>0.4</offset>
      </volume>
    </crank>

    <crank>
      <name>crank1</name>
      <mode>looped</mode>
      <path>Sounds/cranking.wav</path>
      <condition>
        <or>
          <and>
           <property>/engines/engine[0]/cranking</property>
           <not>
             <property>/engines/engine[0]/running</property>
           </not>
          </and>
          <and>
           <property>/engines/engine[1]/cranking</property>
           <not>
             <property>/engines/engine[1]/running</property>
           </not>
         </and>
        </or>
      </condition>
      <position>
        <x>15.0</x>
        <y>-5.0</y>
        <z>0.0</z>
      </position>
      <volume>
        <offset>0.5</offset>
      </volume>
    </crank>

    <crank>
      <name>cough1</name>
      <path>Sounds/coughing.wav</path>
      <condition>
        <or>
          <property>/engines/engine[0]/running</property>
          <property>/engines/engine[1]/running</property>
        </or>
      </condition>
      <position>
        <x>15.0</x>
        <y>-5.0</y>
        <z>0.0</z>
      </position>
      <volume>
        <offset>0.3</offset>
      </volume>
    </crank>

<!-- internal -->
  <engine>
   <name>engine1</name>
   <mode>looped</mode>
   <path>Sounds/wasp.wav</path>
   <condition>
    <and>
     <or>
      <and>
       <property>/engines/engine[0]/running</property>
       <greater-than-equals>
        <property>/engines/engine[0]/mp-osi</property>
        <value>6.2</value>
       </greater-than-equals>
      </and>
      <and>
       <property>/engines/engine[1]/running</property>
       <greater-than-equals>
        <property>/engines/engine[1]/mp-osi</property>
        <value>6.2</value>
       </greater-than-equals>
      </and>
     </or>
     <property>/sim/current-view/internal</property>
    </and>
   </condition>
   <position>
    <x>15.0</x>
    <y>-5.0</y>
    <z>0.0</z>
   </position>
   <volume>
    <property>/engines/engine[0]/mp-osi</property>
    <factor>0.009</factor>
    <min>0.01</min>
    <max>0.15</max>
    <offset>0.04</offset>
   </volume>
   <volume>
    <property>/engines/engine[1]/mp-osi</property>
    <factor>0.009</factor>
    <min>0.01</min>
    <max>0.15</max>
    <offset>0.04</offset>
   </volume>
   <pitch>
    <property>/engines/engine[0]/rpm</property>
    <factor>0.0004</factor>
    <min>0.1</min>
    <max>2.0</max>
    <offset>0.3</offset>
   </pitch>
   <pitch>
    <property>/engines/engine[1]/rpm</property>
    <factor>0.0004</factor>
    <min>0.1</min>
    <max>2.0</max>
    <offset>0.3</offset>
   </pitch>
  </engine>

  <engine>
   <name>idle1</name>
   <mode>looped</mode>
   <path>Sounds/wasp.wav</path>
   <condition>
    <and>
     <or>
      <and>
       <property>/engines/engine[0]/running</property>
       <less-than>
        <property>/engines/engine[0]/mp-osi</property>
        <value>6.2</value>
       </less-than>
      </and>
      <and>
       <property>/engines/engine[1]/running</property>
       <less-than>
        <property>/engines/engine[1]/mp-osi</property>
        <value>6.2</value>
       </less-than>
      </and>
     </or>
     <property>/sim/current-view/internal</property>
    </and>
   </condition>
   <position>
    <x>15.0</x>
    <y>-5.0</y>
    <z>0.0</z>
   </position>
   <volume>
    <property>/engines/engine[0]/mp-osi</property>
    <factor>0.009</factor>
    <min>0.01</min>
    <max>0.04</max>
    <offset>0.03</offset>
   </volume>
   <volume>
    <property>/engines/engine[1]/mp-osi</property>
    <factor>0.009</factor>
    <min>0.01</min>
    <max>0.04</max>
    <offset>0.03</offset>
   </volume>
   <pitch>
    <property>/engines/engine[0]/rpm</property>
    <factor>0.0004</factor>
    <min>0.1</min>
    <max>2.0</max>
    <offset>0.3</offset>
   </pitch>
   <pitch>
    <property>/engines/engine[1]/rpm</property>
    <factor>0.0004</factor>
    <min>0.1</min>
    <max>2.0</max>
    <offset>0.3</offset>
   </pitch>
  </engine>

<!-- external -->
  <engine>
   <name>engine1 external</name>
   <mode>looped</mode>
   <path>Sounds/wasp.wav</path>
   <condition>
    <and>
     <or>
      <and>
       <property>/engines/engine[0]/running</property>
       <greater-than-equals>
        <property>/engines/engine[0]/mp-osi</property>
        <value>6.2</value>
       </greater-than-equals>
      </and>
      <and>
       <property>/engines/engine[1]/running</property>
       <greater-than-equals>
        <property>/engines/engine[1]/mp-osi</property>
        <value>6.2</value>
       </greater-than-equals>
      </and>
     </or>
     <not>
      <property>/sim/current-view/internal</property>
     </not>
    </and>
   </condition>
   <position>
    <x>15.0</x>
    <y>-5.0</y>
    <z>0.0</z>
   </position>
   <volume>
    <property>/engines/engine[0]/mp-osi</property>
    <factor>0.009</factor>
    <min>0.02</min>
    <max>0.30</max>
    <offset>0.07</offset>
   </volume>
   <volume>
    <property>/engines/engine[1]/mp-osi</property>
    <factor>0.009</factor>
    <min>0.02</min>
    <max>0.30</max>
    <offset>0.07</offset>
   </volume>
   <pitch>
    <property>/engines/engine[0]/rpm</property>
    <factor>0.0004</factor>
    <min>0.1</min>
    <max>2.0</max>
    <offset>0.3</offset>
   </pitch>
   <pitch>
    <property>/engines/engine[1]/rpm</property>
    <factor>0.0004</factor>
    <min>0.1</min>
    <max>2.0</max>
    <offset>0.3</offset>
   </pitch>
  </engine>

  <engine>
   <name>idle1 external</name>
   <mode>looped</mode>
   <path>Sounds/wasp.wav</path>
   <condition>
    <and>
     <or>
      <and>
       <property>/engines/engine[0]/running</property>
       <less-than>
        <property>/engines/engine[0]/mp-osi</property>
        <value>6.2</value>
       </less-than>
      </and>
      <and>
       <property>/engines/engine[1]/running</property>
        <less-than>
        <property>/engines/engine[1]/mp-osi</property>
        <value>6.2</value>
       </less-than>
      </and>
     </or>
     <not>
      <property>/sim/current-view/internal</property>
     </not>
    </and>
   </condition>
   <position>
    <x>15.0</x>
    <y>-5.0</y>
    <z>0.0</z>
   </position>
   <volume>
    <property>/engines/engine[0]/mp-osi</property>
    <factor>0.009</factor>
    <min>0.01</min>
    <max>0.04</max>
    <offset>0.08</offset>
   </volume>
   <volume>
    <property>/engines/engine[1]/mp-osi</property>
    <factor>0.009</factor>
    <min>0.01</min>
    <max>0.04</max>
    <offset>0.08</offset>
   </volume>
   <pitch>
    <property>/engines/engine[0]/rpm</property>
    <factor>0.0004</factor>
    <min>0.1</min>
    <max>2.0</max>
    <offset>0.3</offset>
   </pitch>
   <pitch>
    <property>/engines/engine[1]/rpm</property>
    <factor>0.0004</factor>
    <min>0.1</min>
    <max>2.0</max>
    <offset>0.3</offset>
   </pitch>
  </engine>

    <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.01</min>
        <max>0.04</max>
      </volume>
      <pitch>
        <property>/velocities/airspeed-kt</property>
        <factor>0.01</factor>
        <offset>1.25</offset>
      </pitch>
    </wind>

    <!-- COMMON SOUNDS -->
    <rumble>
      <name>rumble</name>
      <mode>looped</mode>
      <path>Sounds/wave.wav</path>
      <condition>
        <or>
          <property>/gear/gear[0]/wow</property>
          <property>/gear/gear[1]/wow</property>
          <property>/gear/gear[2]/wow</property>
          <property>/gear/gear[3]/wow</property>
          <property>/gear/gear[4]/wow</property>
          <property>/gear/gear[5]/wow</property>
        </or>
      </condition>
      <volume>
        <property>/velocities/airspeed-kt</property>
        <type>log</type>
        <factor>0.25</factor>
      </volume>
    </rumble>

    <squeal>
      <name>water</name>
      <path>Sounds/wave.wav</path>
      <condition>
        <or>
          <property>/gear/gear[0]/wow</property>
          <property>/gear/gear[1]/wow</property>
          <property>/gear/gear[2]/wow</property>
          <property>/gear/gear[3]/wow</property>
          <property>/gear/gear[4]/wow</property>
          <property>/gear/gear[5]/wow</property>
        </or>
      </condition>
      <volume>
        <property>/velocities/speed-down-fps</property>
        <factor>0.5</factor>
        <max>1.0</max>
      </volume>
      <volume>
        <property>/velocities/speed-down-fps</property>
        <factor>0.5</factor>
        <max>1.0</max>
      </volume>
    </squeal>

    <stall>
      <name>stall</name>
      <path>Sounds/stall.wav</path>
      <property>/sim/alarms/stall-warning</property>
      <volume>
        <property>/velocities/airspeed-kt</property>
        <min>30.0</min>
      </volume>
      <reference-dist>10.0</reference-dist>
      <max-dist>20.0</max-dist>
    </stall>

    <door>
      <name>Crew door</name>
      <path>Sounds/door_close.wav</path>
      <condition>
        <equals>
          <property>/instrumentation/doors/crew/position-norm</property>
          <value>0.0</value>
        </equals>
      </condition>
      <volume>
        <factor>0.2</factor>
      </volume>
    </door>

    <door>
      <name>Passenger door</name>
      <path>Sounds/door_close.wav</path>
      <condition>
        <equals>
          <property>/instrumentation/doors/passenger/position-norm</property>
          <value>0.0</value>
        </equals>
      </condition>
      <volume>
        <factor>0.2</factor>
      </volume>
    </door>

    <guns> 
      <name>gunfire</name>
      <mode>looped</mode>
      <path>Aircraft/Macchi-M33/Sounds/gunfire_1.wav</path>
      <condition> 
        <property>controls/armament/trigger</property>
        <property>ai/submodels/submodel/count</property>
      </condition>
      <volume> 
        <factor>1.2</factor>
        <max>1.0</max>
      </volume>
    </guns>

<!-- cannot disable click in external views, otherwise heard when ctrl-V -->
    <click>
      <name>click on</name>
      <path>Sounds/click.wav</path>
      <condition>
        <property>/instrumentation/generic/click</property>
      </condition>
      <volume>
        <max>0.2</max>
      </volume>
    </click>

    <click>
      <name>click off</name>
      <path>Sounds/click.wav</path>
      <condition>
        <not>
          <property>/instrumentation/generic/click</property>
        </not>
      </condition>
      <volume>
        <max>0.2</max>
      </volume> 
    </click>

  </fx>
 
</PropertyList>
