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

<!-- - Fuselage were soundproofed against the engine sound.

     - Low hardware config : 2 engines per sound; otherwise exception in main loop.
--> 
<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>-2.0</x>
        <y>0.0</y>
        <z>-2.0</z>
      </position>
      <volume>
        <offset>0.01</offset>
        <max>0.001</max>
      </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>-2.0</x>
        <y>0.0</y>
        <z>-2.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>-2.0</x>
        <y>0.0</y>
        <z>-2.0</z>
      </position>
      <volume>
        <offset>0.3</offset>
      </volume>
    </crank>
    
    <!-- internal -->
    <engine>
      <name>engine1</name>
      <mode>looped</mode>
      <path>Aircraft/DO-26/Sounds/engine_running.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>-2.0</x>
        <y>0.0</y>
        <z>-2.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>Aircraft/DO-26/Sounds/engine_idle.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>-2.0</x>
        <y>0.0</y>
        <z>-2.0</z>
      </position>
      <volume>
        <property>/engines/engine[0]/mp-osi</property>
        <factor>0.009</factor>
        <min>0.005</min>
        <max>0.02</max>
        <offset>0.03</offset>
      </volume>
      <volume>
        <property>/engines/engine[1]/mp-osi</property>
        <factor>0.009</factor>
        <min>0.005</min>
        <max>0.02</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>Aircraft/DO-26/Sounds/engine_running.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>-2.0</x>
        <y>0.0</y>
        <z>-2.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>Aircraft/DO-26/Sounds/engine_idle.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>-2.0</x>
        <y>0.0</y>
        <z>-2.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.05</offset>
      </volume>
      <volume>
        <property>/engines/engine[1]/mp-osi</property>
        <factor>0.009</factor>
        <min>0.01</min>
        <max>0.04</max>
        <offset>0.05</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>
    
    <!-- Engines 3 & 4 -->
    <crank>
      <name>engstart2</name>
      <path>Sounds/engstart.wav</path>
      <condition>
        <or>
          <property>/engines/engine[2]/cranking</property>
          <property>/engines/engine[3]/cranking</property>
        </or>
      </condition>
      <position>
        <x>2.0</x>
        <y>0.0</y>
        <z>-2.0</z>
      </position>
      <volume>
        <offset>0.01</offset>
        <max>0.001</max>
      </volume>
    </crank>
    
    <crank>
      <name>crank2</name>
      <mode>looped</mode>
      <path>Sounds/cranking.wav</path>
      <condition>
        <or>
          <and>
            <property>/engines/engine[2]/cranking</property>
            <not>
              <property>/engines/engine[2]/running</property>
            </not>
          </and>
          <and>
            <property>/engines/engine[3]/cranking</property>
            <not>
              <property>/engines/engine[3]/running</property>
            </not>
          </and>
        </or>
      </condition>
      <position>
        <x>2.0</x>
        <y>0.0</y>
        <z>-2.0</z>
      </position>
      <volume>
        <offset>0.5</offset>
      </volume>
    </crank>
    
    <crank>
      <name>cough2</name>
      <path>Sounds/coughing.wav</path>
      <condition>
        <or>
          <property>/engines/engine[2]/running</property>
          <property>/engines/engine[3]/running</property>
        </or>
      </condition>
      <position>
        <x>2.0</x>
        <y>0.0</y>
        <z>-2.0</z>
      </position>
      <volume>
        <offset>0.0</offset>
      </volume>
    </crank>
    
    <engine>
      <name>engine2</name>
      <mode>looped</mode>
      <path>Aircraft/DO-26/Sounds/engine_running.wav</path>
      <condition>
        <and>
          <or>
            <and>
              <property>/engines/engine[2]/running</property>
              <greater-than-equals>
                <property>/engines/engine[2]/mp-osi</property>
                <value>6.2</value>
              </greater-than-equals>
            </and>
            <and>
              <property>/engines/engine[3]/running</property>
              <greater-than-equals>
                <property>/engines/engine[3]/mp-osi</property>
                <value>6.2</value>
              </greater-than-equals>
            </and>
          </or>
          <property>/sim/current-view/internal</property>
        </and>
      </condition>
      <position>
        <x>2.0</x>
        <y>0.0</y>
        <z>-2.0</z>
      </position>
      <volume>
        <property>/engines/engine[2]/mp-osi</property>
        <factor>0.009</factor>
        <min>0.01</min>
        <max>0.15</max>
        <offset>0.03</offset>
      </volume>
      <volume>
        <property>/engines/engine[3]/mp-osi</property>
        <factor>0.009</factor>
        <min>0.01</min>
        <max>0.15</max>
        <offset>0.03</offset>
      </volume>
      <pitch>
        <property>/engines/engine[2]/rpm</property>
        <factor>0.0004</factor>
        <min>0.1</min>
        <max>2.0</max>
        <offset>0.3</offset>
      </pitch>
      <pitch>
        <property>/engines/engine[3]/rpm</property>
        <factor>0.0004</factor>
        <min>0.1</min>
        <max>2.0</max>
        <offset>0.3</offset>
      </pitch>
    </engine>
    
    <engine>
      <name>idle2</name>
      <mode>looped</mode>
      <path>Aircraft/DO-26/Sounds/engine_idle.wav</path>
      <condition>
        <and>
          <or>
            <and>
              <property>/engines/engine[2]/running</property>
              <less-than>
                <property>/engines/engine[2]/mp-osi</property>
                <value>6.2</value>
              </less-than>
            </and>
            <and>
              <property>/engines/engine[3]/running</property>
              <less-than>
                <property>/engines/engine[3]/mp-osi</property>
                <value>6.2</value>
              </less-than>
            </and>
          </or>
          <property>/sim/current-view/internal</property>
        </and>
      </condition>
      <position>
        <x>2.0</x>
        <y>0.0</y>
        <z>-2.0</z>
      </position>
      <volume>
        <property>/engines/engine[2]/mp-osi</property>
        <factor>0.009</factor>
        <min>0.005</min>
        <max>0.02</max>
        <offset>0.02</offset>
      </volume>
      <volume>
        <property>/engines/engine[3]/mp-osi</property>
        <factor>0.009</factor>
        <min>0.005</min>
        <max>0.02</max>
        <offset>0.02</offset>
      </volume>
      <pitch>
        <property>/engines/engine[2]/rpm</property>
        <factor>0.0004</factor>
        <min>0.1</min>
        <max>2.0</max>
        <offset>0.3</offset>
      </pitch>
      <pitch>
        <property>/engines/engine[3]/rpm</property>
        <factor>0.0004</factor>
        <min>0.1</min>
        <max>2.0</max>
        <offset>0.3</offset>
      </pitch>
    </engine>
    
    <!-- external -->
    <engine>
      <name>engine2 external</name>
      <mode>looped</mode>
      <path>Aircraft/DO-26/Sounds/engine_running.wav</path>
      <condition>
        <and>
          <or>
            <and>
              <property>/engines/engine[2]/running</property>
              <greater-than-equals>
                <property>/engines/engine[2]/mp-osi</property>
                <value>6.2</value>
              </greater-than-equals>
            </and>
            <and>
              <property>/engines/engine[3]/running</property>
              <greater-than-equals>
                <property>/engines/engine[3]/mp-osi</property>
                <value>6.2</value>
              </greater-than-equals>
            </and>
          </or>
          <not>
            <property>/sim/current-view/internal</property>
          </not>
        </and>
      </condition>
      <position>
        <x>2.0</x>
        <y>0.0</y>
        <z>-2.0</z>
      </position>
      <volume>
        <property>/engines/engine[2]/mp-osi</property>
        <factor>0.009</factor>
        <min>0.02</min>
        <max>0.30</max>
        <offset>0.06</offset>
      </volume>
      <volume>
        <property>/engines/engine[3]/mp-osi</property>
        <factor>0.009</factor>
        <min>0.02</min>
        <max>0.30</max>
        <offset>0.06</offset>
      </volume>
      <pitch>
        <property>/engines/engine[2]/rpm</property>
        <factor>0.0004</factor>
        <min>0.1</min>
        <max>2.0</max>
        <offset>0.3</offset>
      </pitch>
      <pitch>
        <property>/engines/engine[3]/rpm</property>
        <factor>0.0004</factor>
        <min>0.1</min>
        <max>2.0</max>
        <offset>0.3</offset>
      </pitch>
    </engine>
    
    <engine>
      <name>idle2 external</name>
      <mode>looped</mode>
      <path>Aircraft/DO-26/Sounds/engine_idle.wav</path>
      <condition>
        <and>
          <or>
            <and>
              <property>/engines/engine[2]/running</property>
              <less-than>
                <property>/engines/engine[2]/mp-osi</property>
                <value>6.2</value>
              </less-than>
            </and>
            <and>
              <property>/engines/engine[3]/running</property>
              <less-than>
                <property>/engines/engine[3]/mp-osi</property>
                <value>6.2</value>
              </less-than>
            </and>
          </or>
          <not>
            <property>/sim/current-view/internal</property>
          </not>
        </and>
      </condition>
      <position>
        <x>2.0</x>
        <y>0.0</y>
        <z>-2.0</z>
      </position>
      <volume>
        <property>/engines/engine[2]/mp-osi</property>
        <factor>0.009</factor>
        <min>0.01</min>
        <max>0.04</max>
        <offset>0.04</offset>
      </volume>
      <volume>
        <property>/engines/engine[3]/mp-osi</property>
        <factor>0.009</factor>
        <min>0.01</min>
        <max>0.04</max>
        <offset>0.04</offset>
      </volume>
      <pitch>
        <property>/engines/engine[2]/rpm</property>
        <factor>0.0004</factor>
        <min>0.1</min>
        <max>2.0</max>
        <offset>0.3</offset>
      </pitch>
      <pitch>
        <property>/engines/engine[3]/rpm</property>
        <factor>0.0004</factor>
        <min>0.1</min>
        <max>2.0</max>
        <offset>0.3</offset>
      </pitch>
    </engine>
    
    <rumble>
      <name>rumble</name>
      <mode>looped</mode>
      <path>Aircraft/DO-26/Sounds/flotte.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[4]/wow</property>
          <property>/gear/gear[5]/wow</property>
        </or>
      </condition>
      <volume>
        <property>/velocities/airspeed-kt</property>
        <type>log</type>
        <factor>0.2</factor>
      </volume>
    </rumble>
    
    <squeal>
      <name>water</name>
      <path>Aircraft/DO-26/Sounds/flotte.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[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/airspeed-kt</property>
        <factor>0.01</factor>
        <max>1.0</max>
      </volume>
      <volume>
        <internal>dt_stop</internal>
        <factor>0.05</factor>
        <max>1.0</max>
      </volume>
      <pitch>
        <property>/velocities/airspeed-kt</property>
        <factor>0.0025</factor>
        <offset>0.5</offset>
        <max>1.0</max>
      </pitch>
    </squeal>
    
    <flap>
      <name>flaps</name>
      <mode>in-transit</mode>
      <path>Aircraft/DO-26/Sounds/flap_move.wav</path>
      <property>/surface-positions/flap-pos-norm</property>
      <volume>
        <factor>0.1</factor>
      </volume>
      <reference-dist>10.0</reference-dist>
      <max-dist>20.0</max-dist>
    </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.01</min>
        <max>0.04</max>
      </volume>
      <pitch>
        <property>/velocities/airspeed-kt</property>
        <factor>0.01</factor>
        <offset>1.25</offset>
      </pitch>
    </wind>
    
    <stall>
      <name>stall</name>
      <path>Aircraft/DO-26/Sounds/stall_horn.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>
    
    <!-- no binding yet?
    <click>
    <name>click</name>
    <path>Sounds/click.wav</path>
    </click>
    -->
    
  </fx>
  
</PropertyList>
