<?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>/Aircraft/c152/Sounds/Sounds_Engine_Continental-O200A.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>.
					 -->
			  <min>0.30</min>
			  <max>2.0</max>
			</volume>
			<pitch>
				<property>/engines/engine/rpm</property>
				<factor>0.0010</factor>
				<min>0.0</min>
				<max>2.5</max>
				<offset>0.01</offset>
			</pitch>
		</engine>

		<propeller>
			<name>propeller</name>
			<mode>looped</mode>
			<path>Sounds/prop.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.0015</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/flaps.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>0.8</factor>
			</volume>
			<reference-dist>10.0</reference-dist>
			<max-dist>20.0</max-dist>
		</flap>

        <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.50</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.50</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>

        <left-window-opening>
            <name>left-window-opening</name>
            <mode>once</mode>
            <path>Sounds/window-opening.wav</path>
            <condition>
                <greater-than>
                    <property>/sim/model/door-positions/leftWindow/position-norm</property>
                    <value>0.4</value>
                </greater-than>
            </condition>
            <position>
                <x>2.58</x>
                <y>0.72</y>
                <z>0.22</z>
            </position>
            <volume>
                <factor>0.7</factor>
            </volume>
            <reference-dist>0.2</reference-dist>
            <max-dist>50.0</max-dist>
        </left-window-opening>

        <left-window-closing>
            <name>left-window-closing</name>
            <mode>once</mode>
            <path>Sounds/window-closing.wav</path>
            <condition>
                <less-than>
                    <property>/sim/model/door-positions/leftWindow/position-norm</property>
                    <value>0.5</value>
                </less-than>
            </condition>
            <position>
                <x>2.58</x>
                <y>0.72</y>
                <z>0.22</z>
            </position>
            <volume>
                <factor>0.55</factor>
            </volume>
            <reference-dist>0.2</reference-dist>
            <max-dist>50.0</max-dist>
        </left-window-closing>

        <right-window-opening>
            <name>right-window-opening</name>
            <mode>once</mode>
            <path>Sounds/window-opening.wav</path>
            <condition>
                <greater-than>
                    <property>/sim/model/door-positions/rightWindow/position-norm</property>
                    <value>0.4</value>
                </greater-than>
            </condition>
            <position>
                <x>2.58</x>
                <y>-0.72</y>
                <z>0.22</z>
            </position>
            <volume>
                <factor>0.7</factor>
            </volume>
            <reference-dist>0.2</reference-dist>
            <max-dist>50.0</max-dist>
        </right-window-opening>

        <right-window-closing>
            <name>right-window-closing</name>
            <mode>once</mode>
            <path>Sounds/window-closing.wav</path>
            <condition>
                <less-than>
                    <property>/sim/model/door-positions/rightWindow/position-norm</property>
                    <value>0.5</value>
                </less-than>
            </condition>
            <position>
                <x>2.58</x>
                <y>-0.72</y>
                <z>0.22</z>
            </position>
            <volume>
                <factor>0.55</factor>
            </volume>
            <reference-dist>0.2</reference-dist>
            <max-dist>50.0</max-dist>
        </right-window-closing>
 
        <switch>
            <name>click-master-bat-switch</name>
            <mode>once</mode>
            <path>Sounds/click.wav</path>
            <condition>
                <property>/sim/model/c152/sound/click-master-bat</property>
            </condition>
            <position>
                <x>-0.3660</x>
                <y>0.3350</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>0.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/c152/sound/click-master-alt</property>
            </condition>
            <position>
                <x>-0.3660</x>
                <y>0.3350</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>0.2</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>

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

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

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

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

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

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

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

        <switch>
            <name>click-dme-source-switch</name>
            <mode>once</mode>
            <path>Sounds/click.wav</path>
            <condition>
                <property>/sim/model/c152/sound/click-dme-source</property>
            </condition>
            <volume>
                <factor>1.0</factor>
            </volume> 
           <position>
                <x>-0.3660</x>
                <y>0.3350</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>0.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/c152/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>
		
        <switch>
            <name>click-ai-caged</name>
            <mode>once</mode>
            <path>Sounds/double-click.wav</path>
            <property>/sim/model/c152/sound/click-ai-caged</property>
            <position>
                <x>-0.3660</x>
                <y>0.2250</y>
                <z>-0.0400</z>
            </position>
            <reference-dist>0.2</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>

        <dial>
            <name>dial-rt385a-1-dial</name>
            <mode>once</mode>
            <path>Sounds/scroll.wav</path>
            <condition>
                <property>/sim/model/c152/sound/click-rt385a-1-dial</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>
            <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/c152/sound/click-magneto-forward</property>
            </condition>
            <position>
                <x>-0.3660</x>
                <y>0.3700</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>0.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/c152/sound/click-magneto-back</property>
            </condition>
            <position>
                <x>-0.3660</x>
                <y>0.3700</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>0.2</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>3.32</factor>
            </volume>
            <position>
                <x>-0.3660</x>
                <y>0.3700</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>0.2</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>3.32</factor>
            </volume>
            <position>
                <x>-0.3660</x>
                <y>0.3700</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>0.2</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>

        <switch>
            <name>click-glove_compartment_opening</name>
            <mode>once</mode>
            <path>Sounds/glove_compartment_opening.wav</path>
            <condition>
                <property>/sim/model/c152/sound/click-glove_compartment_opening</property>
            </condition>
            <volume>
                <factor>0.32</factor>
            </volume>
            <position>
                <x>-0.3660</x>
                <y>0.3700</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>0.2</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>

        <switch>
            <name>click-glove_compartment_closing</name>
            <mode>once</mode>
            <path>Sounds/glove_compartment_closing.wav</path>
            <condition>
                <and>
                    <property>/sim/model/c152/sound/click-glove_compartment_closing</property>
                    <less-than>
                        <property>/sim/model/door-positions/gloveboxDoor/position-norm</property>
                        <value>0.5</value>
                    </less-than>
                </and>
            </condition>
            <volume>
                <factor>0.32</factor>
            </volume>
            <position>
                <x>-0.3660</x>
                <y>0.3700</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>0.2</reference-dist>
            <max-dist>5.0</max-dist>
        </switch>

        <switch>
            <name>click-gps_to_glove_compartment</name>
            <mode>once</mode>
            <path>Sounds/gps_to_glove_compartment.wav</path>
            <condition>
                <and>
                   <property>/sim/model/c152/sound/click-gps_to_glove_compartment</property>
                    <greater-than-equals>
                        <property>/sim/model/door-positions/gloveboxDoor/position-norm</property>
                        <value>0.5</value>
                    </greater-than-equals>
                </and>
            </condition>
            <volume>
                <factor>0.75</factor>
            </volume>
            <position>
                <x>-0.3660</x>
                <y>0.3700</y>
                <z>-0.3500</z>
            </position>
            <reference-dist>0.2</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>
