<?xml version="1.0" encoding="UTF-8"?>
 
<PropertyList>

 <fx>
 
  <crank>
   <name>engstart</name>
   <path>Sounds/engstart.wav</path>
   <property>engines/engine/cranking</property>
   <position>
    <x>-1.0</x>
    <y>0.0</y>
    <z>0.0</z>
   </position>
   <volume>
    <offset>0.4</offset>
   </volume>
  </crank>

  <crank>
   <name>crank</name>
   <mode>looped</mode>
   <path>Sounds/cranking.wav</path>
   <condition>
    <property>engines/engine/cranking</property>
    <not>
     <property>engines/engine/running</property>
    </not>
   </condition>
   <position>
    <x>-1.0</x>
    <y>0.0</y>
    <z>0.0</z>
   </position>
   <volume>
    <offset>0.5</offset>
   </volume>
  </crank>

  <crank>
   <name>cough</name>
   <path>Sounds/coughing.wav</path>
   <property>engines/engine/running</property>
   <position>
    <x>-1.0</x>
    <y>0.0</y>
    <z>0.0</z>
   </position>
   <volume>
    <offset>0.3</offset>
   </volume>
  </crank>

  <engine>
    <name>engine</name>
    <mode>looped</mode>
    <path>Sounds/Continental-O-320.wav</path>
    <property>/engines/engine/running</property>
    <volume>
      <property>/engines/engine/mp-osi</property>
      <factor>0.027777</factor>
      <!-- these values of min and max are unlikely to be relevant,
           because the MAP is unlikely to go below 5" or above 28".
           Also note that propeller noise is additional to engine
           noise, rather like an <offset>.
             -->
      <max>1.8</max>
      <min>0.9</min>
    </volume>
    <pitch>
      <property>/engines/engine/rpm</property>
      <factor>0.0008</factor>
      <min>0.3</min>
      <max>1.8</max>
      <offset>0.15</offset>
    </pitch>
  </engine>

  <propeller>
    <name>propeller</name>
    <mode>looped</mode>
    <path>Sounds/wasp.wav</path>
    <condition>
      <greater-than>
        <property>/engines/engine/rpm</property>
        <value>10</value>
      </greater-than>
    </condition>
    <volume>
      <property>/engines/engine/rpm</property>
      <factor>0.0001</factor>
      <max>0.25</max>
    </volume>
    <pitch>
      <property>/engines/engine/rpm</property>
      <factor>0.0004</factor>
      <min>0.0</min>
      <max>2.0</max>
      <offset>0.01</offset>
    </pitch>
  </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>
    <!-- <property>sim/current-view/internal</property> -->
   </condition>
   <position>
    <x>1.0</x>
    <y>0.0</y>
    <z>-1.5</z>
   </position>
   <volume>
    <property>velocities/groundspeed-kt</property>
    <type>log</type>
    <factor>0.25</factor>
   </volume>
  </rumble>

  <squeal>
   <name>squeal</name>
   <path>Sounds/squeal.wav</path>
   <condition>
    <and>
     <or>
      <property>gear/gear[0]/wow</property>
      <property>gear/gear[1]/wow</property>
      <property>gear/gear[2]/wow</property>
     </or>
     <less-than>
      <property>velocities/vertical-speed-fps</property>
      <value>-0.05</value>
     </less-than>
    </and>
   </condition>
   <position>
    <x>1.0</x>
    <y>0.0</y>
    <z>-1.5</z>
   </position>
   <volume>
    <property>velocities/groundspeed-kt</property>
    <factor>0.01</factor>
    <max>1.0</max>
   </volume>
   <volume>
    <internal>dt_stop</internal>
    <factor>0.1</factor>
    <max>1.0</max>
   </volume>
   <pitch>
    <property>velocities/groundspeed-kt</property>
    <factor>0.0025</factor>
    <offset>1.2</offset>
   </pitch>
  </squeal>
  
          <flap>
            <name>flaps</name>
            <mode>in-transit</mode>
            <path>Sounds/flaplever.wav</path>
            <property>surface-positions/flap-pos-norm</property>
            <position>
                <x>0.5</x>
                <y>0.0</y>
                <z>0.5</z>
            </position>
            <volume>
                <factor>1.0</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>
   <condition>
    <and>
     <property>velocities/airspeed-kt</property>
     <property>sim/current-view/internal</property>
    </and>
   </condition>
   <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.0035</factor>
    <offset>1.25</offset>
   </pitch>
  </wind> -->
        
        <switch>
            <name>click-master-bat-switch</name>
            <mode>once</mode>
            <path>Sounds/click.wav</path>
            <condition>
                <property>/sim/model/pa38/sound/click-master-bat</property>
            </condition>
            <position>
                <x>-0.3660</x>
                <y>0.3350</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>2.2</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>
  
        <switch>
            <name>click-master-alt-switch</name>
            <mode>once</mode>
            <path>Sounds/click.wav</path>
            <condition>
                <property>/sim/model/pa38/sound/click-master-alt</property>
            </condition>
            <position>
                <x>-0.3660</x>
                <y>0.3350</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>2.2</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>

        <switch>
            <name>click-landing-light-switch</name>
            <mode>once</mode>
            <path>Sounds/click3.wav</path>
            <condition>
                <property>/sim/model/pa38/sound/click-landing-light</property>
            </condition>
            <position>
                <x>-0.3660</x>
                <y>0.3350</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>0.8</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>

        <switch>
            <name>click-fuel-pump</name>
            <mode>once</mode>
            <path>Sounds/click3.wav</path>
            <condition>
                <property>/sim/model/pa38/sound/click-fuel-pump</property>
            </condition>
            <position>
                <x>-0.3660</x>
                <y>0.3350</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>0.8</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>

        <switch>
            <name>click-strobe-switch</name>
            <mode>once</mode>
            <path>Sounds/click3.wav</path>
            <condition>
                <property>/sim/model/pa38/sound/click-strobe</property>
            </condition>
            <position>
                <x>-0.3660</x>
                <y>0.3350</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>0.8</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>

        <switch>
            <name>click-pitot-heat-switch</name>
            <mode>once</mode>
            <path>Sounds/click3.wav</path>
            <condition>
                <property>/sim/model/pa38/sound/click-pitot-heat</property>
            </condition>
            <position>
                <x>-0.3660</x>
                <y>0.3350</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>0.8</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>

        <switch>
            <name>click-fuel-selector</name>
            <mode>once</mode>
            <path>Sounds/click3.wav</path>
            <condition>
                <property>/sim/model/pa38/sound/click-fuel-selector</property>
            </condition>
            <position>
                <x>-0.3660</x>
                <y>0.3350</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>1.2</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>
		
        <switch>
            <name>click-audio-switch</name>
            <mode>once</mode>
            <path>Sounds/click3.wav</path>
            <condition>
                <property>/sim/model/pa38/sound/click-audio</property>
            </condition>
            <position>
                <x>-0.3660</x>
                <y>-0.1200</y>
                <z>-0.0300</z>
            </position>
            <reference-dist>0.2</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>

        <dial>
            <name>click-dial</name>
            <mode>once</mode>
            <path>Sounds/scroll.wav</path>
            <condition>
                <property>/sim/model/pa38/sound/click-dial</property>
            </condition>
            <position>
                <x>-0.3660</x>
                <y>-0.1200</y>
                <z>-0.0300</z>
            </position>
            <reference-dist>0.5</reference-dist>
            <max-dist>5.0</max-dist>
            <volume>
                <factor>1.0</factor>
            </volume>
        </dial>

        <switch>
            <name>click-magneto-forward</name>
            <mode>once</mode>
            <path>Sounds/keys2.wav</path>
            <condition>
                <property>/sim/model/pa38/sound/click-magneto-forward</property>
            </condition>
            <position>
                <x>-0.3660</x>
                <y>0.3700</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>3.2</reference-dist>
            <max-dist>5.0</max-dist>
		</switch>

        <switch>
            <name>click-magneto-back</name>
            <mode>once</mode>
            <path>Sounds/keys.wav</path>
            <condition>
                <property>/sim/model/pa38/sound/click-magneto-back</property>
            </condition>
            <position>
                <x>-0.3660</x>
                <y>0.3700</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>3.2</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>

        <left-door-opening>
            <name>left-door-opening</name>
            <mode>once</mode>
            <path>Sounds/door-opening.wav</path>
            <condition>
                <greater-than>
                    <property>/sim/model/door-positions/leftDoor/position-norm</property>
                    <value>0.02</value>
                </greater-than>
            </condition>
            <position>
                <x>0.75</x>
                <y>0.6</y>
                <z>-0.35</z>
            </position>
            <reference-dist>1.5</reference-dist>
            <max-dist>50.0</max-dist>
        </left-door-opening>

        <left-door-closing>
            <name>left-door-closing</name>
            <mode>once</mode>
            <path>Sounds/door-closing.wav</path>
            <condition>
                <less-than>
                    <property>/sim/model/door-positions/leftDoor/position-norm</property>
                    <value>0.18</value>
                </less-than>
            </condition>
            <position>
                <x>0.75</x>
                <y>0.6</y>
                <z>-0.35</z>
            </position>
            <reference-dist>1.5</reference-dist>
            <max-dist>50.0</max-dist>
        </left-door-closing>

        <right-door-opening>
            <name>right-door-opening</name>
            <mode>once</mode>
            <path>Sounds/door-opening.wav</path>
            <condition>
                <greater-than>
                    <property>/sim/model/door-positions/rightDoor/position-norm</property>
                    <value>0.02</value>
                </greater-than>
            </condition>
            <position>
                <x>0.75</x>
                <y>-0.6</y>
                <z>-0.35</z>
            </position>
            <reference-dist>1.5</reference-dist>
            <max-dist>50.0</max-dist>
        </right-door-opening>

        <right-door-closing>
            <name>right-door-closing</name>
            <mode>once</mode>
            <path>Sounds/door-closing.wav</path>
            <condition>
                <less-than>
                    <property>/sim/model/door-positions/rightDoor/position-norm</property>
                    <value>0.18</value>
                </less-than>
            </condition>
            <position>
                <x>0.75</x>
                <y>-0.6</y>
                <z>-0.35</z>
            </position>
            <reference-dist>1.5</reference-dist>
            <max-dist>50.0</max-dist>
        </right-door-closing>

        <switch>
            <name>click-rotator-switch</name>
            <mode>once</mode>
            <path>Sounds/click.wav</path>
            <condition>
                <property>/sim/model/pa38/sound/click-rotator</property>
            </condition>
            <position>
                <x>-0.3660</x>
                <y>0.3350</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>2.8</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>

        <switch>
            <name>click-primer-out</name>
            <mode>once</mode>
            <path>Sounds/primer-out.wav</path>
            <condition>
                <property>/controls/engines/engine/primer-lever</property>
            </condition>
            <volume>
                <factor>0.32</factor>
            </volume>
            <position>
                <x>-0.3660</x>
                <y>0.3700</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>3.5</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>

        <switch>
            <name>click-primer-in</name>
            <mode>once</mode>
            <path>Sounds/primer-in.wav</path>
            <condition>
                <not>
                    <property>/controls/engines/engine/primer-lever</property>
                </not>
            </condition>
            <volume>
                <factor>0.32</factor>
            </volume>
            <position>
                <x>-0.3660</x>
                <y>0.3700</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>3.5</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>

  <stall>
   <name>stall</name>
   <mode>looped</mode>
   <type>avionics</type>
   <path>Sounds/stall.wav</path>
   <condition>
    <and>
     <property>sim/alarms/stall-warning</property>
     <greater-than>
       <property>velocities/airspeed-kt</property>
       <value>10</value>
     </greater-than>
     <not>
       <property>gear/gear[0]/wow</property>
       <property>gear/gear[1]/wow</property>
       <property>gear/gear[2]/wow</property>
     </not>
    </and>
   </condition>
   <volume>
    <property>sim/alarms/stall-warning</property>
    <max>1.0</max>
   </volume>
   <reference-dist>10.0</reference-dist>
   <max-dist>20.0</max-dist>
  </stall>
 
</fx>
 
</PropertyList>
