<?xml version="1.0"?>  

<PropertyList>
	<fx>
		
		<!--	Switches	-->
		<switch>
			<name>master</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<condition>
				<property>controls/switches/master</property>
			</condition>
			<position>
				<x>-0.303818</x>
				<y>-0.078822</y>
				<z> 0.189732</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		<switch>
			<name>master_off</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<condition>
				<not>
					<property>controls/switches/master</property>
				</not>
			</condition>
			<position>
				<x>-0.303818</x>
				<y>-0.078822</y>
				<z> 0.189732</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		<switch>
			<name>mode</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<property>controls/switches/mode</property>
			<position>
				<x>-0.303818</x>
				<y>-0.059134</y>
				<z> 0.189732</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		<switch>
			<name>mode_off</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<condition>
				<not>
					<property>controls/switches/mode</property>
				</not>
			</condition>
			<position>
				<x>-0.303818</x>
				<y>-0.059134</y>
				<z> 0.189732</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		<switch>
			<name>fuelpump</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<property>controls/switches/fuelpump</property>
			<position>
				<x>-0.303818</x>
				<y>-0.039445</y>
				<z> 0.189732</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		<switch>
			<name>fuelpump_off</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<condition>
				<not>
					<property>controls/switches/fuelpump</property>
				</not>
			</condition>
			<position>
				<x>-0.303818</x>
				<y>-0.039445</y>
				<z> 0.189732</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		<switch>
			<name>ldg</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<property>controls/switches/ldg</property>
			<position>
				<x>-0.303818</x>
				<y>-0.000069</y>
				<z> 0.189732</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		<switch>
			<name>ldg_off</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<condition>
				<not>
					<property>controls/switches/ldg</property>
				</not>
			</condition>
			<position>
				<x>-0.303818</x>
				<y>-0.000069</y>
				<z> 0.189732</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		<switch>
			<name>acl</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<property>controls/switches/acl</property>
			<position>
				<x>-0.303818</x>
				<y> 0.01962 </y>
				<z> 0.189732</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		<switch>
			<name>acl_off</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<condition>
				<not>
					<property>controls/switches/acl</property>
				</not>
			</condition>
			<position>
				<x>-0.303818</x>
				<y> 0.01962 </y>
				<z> 0.189732</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		<switch>
			<name>pos</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<property>controls/switches/pos</property>
			<position>
				<x>-0.303818</x>
				<y> 0.039308</y>
				<z> 0.189732</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		<switch>
			<name>pos_off</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<condition>
				<not>
					<property>controls/switches/pos</property>
				</not>
			</condition>
			<position>
				<x>-0.303818</x>
				<y> 0.039308</y>
				<z> 0.189732</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		<switch>
			<name>magneto-switch</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<property>controls/engines/engine[0]/magneto-click</property>
			<position>
				<x> -0.30 </x>
				<y> -0.05 </y>
				<z> -0.03 </z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		
		<!--	TODO replace sounds	-->
		<cb>
			<name>cb_center_panel_in</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<property>controls/circuit-breakers/click/center-panel/in</property>
			<position>
				<x>-0.30</x>
				<y> 0.03</y>
				<z> 0.16</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</cb>
		<cb>
			<name>cb_center_panel_out</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<property>controls/circuit-breakers/click/center-panel/out</property>
			<position>
				<x>-0.30</x>
				<y> 0.03</y>
				<z> 0.16</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</cb>
		<cb>
			<name>cb_right_panel_in</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<property>controls/circuit-breakers/click/right-panel/in</property>
			<position>
				<x>-0.335</x>
				<y> 0.333</y>
				<z> 0.046</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</cb>
		<cb>
			<name>cb_right_panel_out</name>
			<mode>once</mode>
			<path>Sounds/click.wav</path>
			<property>controls/circuit-breakers/click/right-panel/out</property>
			<position>
				<x>-0.335</x>
				<y> 0.333</y>
				<z> 0.046</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</cb>
		
		<!--	TODO find a sound for tha canopy opening/closing
		
		<canopy>
			<name>canopy-open</name>
			<mode>once</mode>
			<condition>
				<greater-than>
					<property>fdm/jsbsim/canopy/position-norm</property>
					<value>0.0</value>
				</greater-than>
			</condition>
		</canopy>
		<canopy>
			<name>canopy-close</name>
			<mode>once</mode>
			<condition>
				<equals>
					<property>fdm/jsbsim/canopy/position-norm</property>
					<value>0.0</value>
				</equals>
			</condition>
		</canopy>-->
		
		
		<!--	TODO using sounds from the DR400-Ecoflyer for now	-->
		
		<!--	ENGINE	-->
		<crank>
			<name>engstart</name>
			<mode>once</mode>
			<path>135cdi_starter.wav</path>
			<property>engines/engine[0]/cranking</property>
			<volume>
				<offset>0.7</offset>
			</volume>
			<reference-dist>100</reference-dist>
			<max-dist>1000</max-dist>
		</crank>
		<crank>
			<name>engstart_loop</name>
			<mode>looped</mode>
			<path>135cdi_starter_loop.wav</path>
			<property>engines/engine[0]/cranking</property>
			<volume>
				<offset>0.2</offset>
			</volume>
			<delay-sec>0.5</delay-sec>
			<reference-dist>100</reference-dist>
			<max-dist>1000</max-dist>
		</crank>
		<engine>
			<name>engine</name>
			<mode>looped</mode>
			<path>135cdi_engine_outside_idle.wav</path>
			<condition>
				<and>
					<or>
						<property>engines/engine/running</property>
						<and>
							<not>
								<property>engines/engine/running</property>
							</not>
							<not>
								<property>engines/engine/cranking</property>
							</not>
							<greater-than>
								<property>engines/engine/rpm</property>
								<value>500</value>
							</greater-than>
						</and>
					</or>
					<or>
						<greater-than>
							<property>fdm/jsbsim/canopy/position-norm</property>
							<value>0.05</value>
						</greater-than>
						<not>
							<property>sim/current-view/internal</property>
						</not>
					</or>
				</and>
			</condition>
			<volume>
				<property>engines/engine/mp-osi</property>
				<factor>0.00375</factor>
				<min>0.5</min>
				<max>2.0</max>
				<offset>0.7</offset>
			</volume>
			<pitch>
				<property>engines/engine/rpm</property>
				<factor>0.0003</factor>
				<min>0.2</min>
				<max>2.0</max>
				<offset>0.0</offset>
			</pitch>
			<position>
				<x> -2.672 </x>
				<y>  0 </y>
				<z>  0 </z>
			</position>
			<reference-dist>4</reference-dist>
			<max-dist>1000</max-dist>
		</engine>
		<engine-internal>
			<name>engine-internal</name>
			<mode>looped</mode>
			<path>135cdi_engine_inside_idle.wav</path>
			<condition>
				<and>
					<or>
						<property>engines/engine/running</property>
						<and>
							<not>
								<property>engines/engine/running</property>
							</not>
							<not>
								<property>engines/engine/cranking</property>
							</not>
							<greater-than>
								<property>engines/engine/rpm</property>
								<value>500</value>
							</greater-than>
						</and>
					</or>
					<less-than-equals>
						<property>fdm/jsbsim/canopy/position-norm</property>
						<value>0.05</value>
					</less-than-equals>
					<property>sim/current-view/internal</property>
				</and>
			</condition>
			<volume>
				<property>engines/engine/mp-osi</property>
				<factor>0.00375</factor>
				<min>0.5</min>
				<max>2.0</max>
				<offset>0.7</offset>
			</volume>
			<pitch>
				<property>engines/engine/rpm</property>
				<factor>0.0002</factor>
				<min>0.2</min>
				<max>2.0</max>
				<offset>0.7</offset>
			</pitch>
			<reference-dist>4</reference-dist>
			<max-dist>10</max-dist>
			<position>
				<x> -2.672 </x>
				<y>  0 </y>
				<z>  0 </z>
			</position>
		</engine-internal>
		<stop>
			<name>stop</name>
			<mode>once</mode>
			<path>135cdi_stop.wav</path>
			<condition>
				<and>
					<not>
						<property>/engines/engine/running</property>
					</not>
					<less-than>
						<property>/engines/engine/rpm</property>
						<value>500</value>
					</less-than>
				</and>
			</condition>
			<volume>
				<offset>0.9</offset>
			</volume>
			<reference-dist>100</reference-dist>
			<max-dist>1000</max-dist>
			<position>
				<x> -2.627 </x>
				<y>  0.0 </y>
				<z>  0.0 </z>
			</position>
		</stop>
		
		<!--	AVIONICS	-->
		<gyro>
			<name>gyro_ai</name>
			<mode>looped</mode>
			<path>140b_gyro_spin.wav</path>
			<condition>
				<greater-than>
					<property>/instrumentation/attitude-indicator/spin</property>
					<value>0</value>
				</greater-than>
			</condition>
			<volume>
				<property>/instrumentation/attitude-indicator/spin</property>
				<factor>1</factor>
				<max>1</max>
			</volume>
			<position>
				<x>-0.338075</x>
				<y>-0.241584</y>
				<z> 0.077308</z>
			</position>
			<reference-dist>1</reference-dist>
			<max-dist>3</max-dist>
		</gyro>
		<gyro>
			<name>gyro_tc</name>
			<mode>looped</mode>
			<path>140b_gyro_spin.wav</path>
			<condition>
				<greater-than>
					<property>/instrumentation/turn-indicator/spin</property>
					<value>0</value>
				</greater-than>
			</condition>
			<volume>
				<property>/instrumentation/turn-indicator/spin</property>
				<factor>1</factor>
				<max>1</max>
			</volume>
			<position>
				<x>-0.338075</x>
				<y>-0.241584</y>
				<z>-0.007873</z>
			</position>
			<reference-dist>1</reference-dist>
			<max-dist>3</max-dist>
		</gyro>
		
		<!--	LANDING GEAR	-->
		<rumble>
			<name>rumble</name>
			<mode>looped</mode>
			<path>140b_rumble.wav</path>
			<condition>
				<and>
					<or>
						<property>gear/gear[0]/wow</property>
						<property>gear/gear[1]/wow</property>
						<property>gear/gear[2]/wow</property>
					</or>
					<or>
						<greater-than>
							<property>gear/gear[0]/rollspeed-ms</property>
							<value>1</value>
						</greater-than>
						<greater-than>
							<property>gear/gear[1]/rollspeed-ms</property>
							<value>1</value>
						</greater-than>
						<greater-than>
							<property>gear/gear[2]/rollspeed-ms</property>
							<value>1</value>
						</greater-than>
					</or>
				</and>
			</condition>
			<volume>
				<property>velocities/groundspeed-kt</property>
				<type>log</type>
				<factor>0.5</factor>
				<max>2.5</max>
			</volume>
			<position>
				<x> -0.5  </x>
				<y>  0.0  </y>
				<z> -1.19 </z>
			</position>
			<reference-dist>100</reference-dist>
			<max-dist>1000</max-dist>
		</rumble>
		
		<squeal>
			<name>squeal-front</name>
			<mode>once</mode>
			<path>140b_wow_front.wav</path>
			<condition>
				<property>gear/gear[0]/wow</property>
			</condition>
			<volume>
				<property>velocities/groundspeed-kt</property>
				<factor>0.05</factor>
			</volume>
			<reference-dist>5</reference-dist>
			<max-dist>1000</max-dist>
			<position>
				<x> -1.23 </x>
				<y> -0.08 </y>
				<z> -1.19 </z>
			</position>
		</squeal>
		<squeal>
			<name>squeal-left</name>
			<mode>once</mode>
			<path>140b_wow_main.wav</path>
			<condition>
				<property>gear/gear[1]/wow</property>
			</condition>
			<volume>
				<property>velocities/groundspeed-kt</property>
				<factor>0.05</factor>
			</volume>
			<reference-dist>5</reference-dist>
			<max-dist>1000</max-dist>
			<position>
				<x>  0.44 </x>
				<y> -0.95 </y>
				<z> -1.23 </z>
			</position>
		</squeal>
		<squeal>
			<name>squeal-right</name>
			<mode>once</mode>
			<path>140b_wow_main.wav</path>
			<condition>
				<property>gear/gear[2]/wow</property>
			</condition>
			<volume>
				<property>velocities/groundspeed-kt</property>
				<factor>0.05</factor>
			</volume>
			<reference-dist>5</reference-dist>
			<max-dist>1000</max-dist>
			<position>
				<x>  0.44 </x>
				<y>  0.95 </y>
				<z> -1.23 </z>
			</position>
		</squeal>
		
		<!--	FLARM	-->
		<flarm_info>
			<name>flarm new contact</name>
			<mode>once</mode>
			<path>Aircraft/Instruments-3d/glider/flarm/flarm_new_contact.wav</path>
			<condition>
				<and>
					<greater-than>
						<property>/systems/electrical/outputs/flarm</property>
						<value>9</value>
					</greater-than>
					<equals>
						<property>/instrumentation/flarm/new-contact</property>
						<value>0</value>
					</equals>
				</and>
			</condition>
			<position>
				<x>-0.38</x>
				<y> 0.0 </y>
				<z> 0.23</z>
			</position>
		</flarm_info>
		<flarm_info>
			<name>flarm new contact 2</name>
			<mode>once</mode>
			<path>Aircraft/Instruments-3d/glider/flarm/flarm_new_contact.wav</path>
			<condition>
				<and>
					<greater-than>
						<property>/systems/electrical/outputs/flarm</property>
						<value>9</value>
					</greater-than>
					<equals>
						<property>/instrumentation/flarm/new-contact</property>
						<value>1</value>
					</equals>
				</and>
			</condition>
			<position>
				<x>-0.38</x>
				<y> 0.0 </y>
				<z> 0.23</z>
			</position>
		</flarm_info>
		
		<flarm_warn>
			<name>flarm warn 1</name>
			<mode>looped</mode>
			<path>Aircraft/Instruments-3d/glider/flarm/flarm1.wav</path>
			<condition>
				<and>
					<greater-than>
						<property>/systems/electrical/outputs/flarm</property>
						<value>9</value>
					</greater-than>
					<equals>
						<property>/instrumentation/flarm/warn</property>
						<value>1</value>
					</equals>
				</and>
			</condition>
			<position>
				<x>-0.38</x>
				<y> 0.0 </y>
				<z> 0.23</z>
			</position>
		</flarm_warn>
		
		<flarm_warn>
			<name>flarm warn 2</name>
			<mode>looped</mode>
			<path>Aircraft/Instruments-3d/glider/flarm/flarm2.wav</path>
			<condition>
				<and>
					<greater-than>
						<property>/systems/electrical/outputs/flarm</property>
						<value>9</value>
					</greater-than>
					<equals>
						<property>/instrumentation/flarm/warn</property>
						<value>2</value>
					</equals>
				</and>
			</condition>
			<position>
				<x>-0.38</x>
				<y> 0.0 </y>
				<z> 0.23</z>
			</position>
		</flarm_warn>
		
	</fx>
</PropertyList>
