<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
	<!--	Partly adopted from C150 by Harald Johnsen and DR400-Ecoflyer by Bea Wolf, PAF Team et.al.	-->
	<fx>
		<!--	SWITCHES	-->
		<switch>
			<name>click-switch-swpanel</name>
			<mode>once</mode>
			<path>Aircraft/BN-2/Sounds/switch_on.wav</path>
			<condition>
				<equals>
					<property>/sim/sound/switch-panel</property>
					<value>1</value>
				</equals>
			</condition>
			<position>
				<x>-1.66</x>
				<y>-0.2 </y>
				<z>-0.57</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		<switch>
			<name>click-switch-off-swpanel</name>
			<mode>once</mode>
			<path>Aircraft/BN-2/Sounds/switch_off.wav</path>
			<condition>
				<equals>
					<property>/sim/sound/switch-panel</property>
					<value>0</value>
				</equals>
			</condition>
			<position>
				<x>-1.66</x>
				<y>-0.2 </y>
				<z>-0.57</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		<switch>
			<name>click-switch-upperpanel</name>
			<mode>once</mode>
			<path>Aircraft/BN-2/Sounds/switch_on.wav</path>
			<condition>
				<equals>
					<property>/sim/sound/upper-panel</property>
					<value>1</value>
				</equals>
			</condition>
			<position>
				<x>-1.45</x>
				<y> 0.0 </y>
				<z> 0.15</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		<switch>
			<name>click-switch-off-upperpanel</name>
			<mode>once</mode>
			<path>Aircraft/BN-2/Sounds/switch_off.wav</path>
			<condition>
				<equals>
					<property>/sim/sound/upper-panel</property>
					<value>0</value>
				</equals>
			</condition>
			<position>
				<x>-1.45</x>
				<y> 0.0 </y>
				<z> 0.15</z>
			</position>
			<reference-dist>0.2</reference-dist>
			<max-dist>5.0</max-dist>
		</switch>
		<!--	ENGINES	-->
		<!-- Left -->
		<crank>
			<name>engstart</name>
			<path>Sounds/engstart.wav</path>
			<property>engines/engine[0]/cranking</property>
			<volume>
				<factor>0.7</factor>
			</volume>
			<position>
				<x> 0.0</x>
				<y> 1.8</y>
				<z> 0.0</z>
			</position>
			<reference-dist>5.0</reference-dist>
			<max-dist>200.0</max-dist>
		</crank>

		<crank>
			<name>crank</name>
			<mode>looped</mode>
			<path>Sounds/cranking.wav</path>
			<condition>
				<property>engines/engine[0]/cranking</property>
				<not>
					<property>engines/engine[0]/running</property>
				</not>
			</condition>
			<volume>
				<factor>0.9</factor>
			</volume>
			<position>
				<x> 0.0</x>
				<y> 1.8</y>
				<z> 0.0</z>
			</position>
			<reference-dist>5.0</reference-dist>
			<max-dist>200.0</max-dist>
		</crank>

		<crank>
			<name>cough</name>
			<path>Sounds/coughing.wav</path>
			<mode>once</mode>
			<property>engines/engine[0]/running</property>
			<volume>
				<factor>0.9</factor>
			</volume>
			<position>
				<x> 0.0</x>
				<y> 1.8</y>
				<z> 0.0</z>
			</position>
			<reference-dist>5.0</reference-dist>
			<max-dist>200.0</max-dist>
		</crank>
		<engine>
			<name>Engine</name>
			<mode>looped</mode>
			<path>Sounds/engine-prop.wav</path>
			<property>engines/engine[0]/running</property>
			<volume>
				<property>/engines/engine[0]/mp-osi</property>
				<factor>0.005</factor>
				<min>0.2</min>
				<max>0.8</max>
			</volume>
			<pitch>
				<property>/engines/engine[0]/rpm</property>
				<factor>0.0003</factor>
				<min>0.3</min>
				<max>2.0</max>
				<offset>0.6</offset>
			</pitch>
			<position>
				<x> 0.0</x>
				<y> 1.8</y>
				<z> 0.0</z>
			</position>
			<reference-dist>5.0</reference-dist>
			<max-dist>200.0</max-dist>
		</engine>
		<!-- Right -->
		<crank>
			<name>engstart-right</name>
			<path>Sounds/engstart.wav</path>
			<property>engines/engine[1]/cranking</property>
			<volume>
				<factor>0.9</factor>
			</volume>
			<position>
				<x> 0.0</x>
				<y>-1.8</y>
				<z> 0.0</z>
			</position>
			<reference-dist>5.0</reference-dist>
			<max-dist>200.0</max-dist>
		</crank>

		<crank>
			<name>crank-right</name>
			<mode>looped</mode>
			<path>Sounds/cranking.wav</path>
			<condition>
				<property>engines/engine[1]/cranking</property>
				<not>
					<property>engines/engine[1]/running</property>
				</not>
			</condition>
			<volume>
				<factor>0.9</factor>
			</volume>
			<position>
				<x> 0.0</x>
				<y>-1.8</y>
				<z> 0.0</z>
			</position>
			<reference-dist>5.0</reference-dist>
			<max-dist>200.0</max-dist>
		</crank>

		<crank>
			<name>cough-right</name>
			<path>Sounds/coughing.wav</path>
			<mode>once</mode>
			<property>engines/engine[1]/running</property>
			<volume>
				<factor>0.9</factor>
			</volume>
			<position>
				<x> 0.0</x>
				<y>-1.8</y>
				<z> 0.0</z>
			</position>
			<reference-dist>5.0</reference-dist>
			<max-dist>200.0</max-dist>
		</crank>
		<engine>
			<name>Engine-right</name>
			<mode>looped</mode>
			<path>Sounds/engine-prop.wav</path>
			<property>engines/engine[1]/running</property>
			<volume>
				<property>/engines/engine[1]/mp-osi</property>
				<factor>0.005</factor>
				<min>0.2</min>
				<max>0.8</max>
			</volume>
			<pitch>
				<property>/engines/engine[1]/rpm</property>
				<factor>0.0003</factor>
				<min>0.3</min>
				<max>2.0</max>
				<offset>0.6</offset>
			</pitch>
			<position>
				<x> 0.0</x>
				<y>-1.8</y>
				<z> 0.0</z>
			</position>
			<reference-dist>5.0</reference-dist>
			<max-dist>200.0</max-dist>
		</engine>

		<!--	LANDING GEAR	-->
		<squeal>
			<name>squeal_front</name>
			<mode>once</mode>
			<path>squeal_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>200</max-dist>
			<position>
				<x>-3  </x>
				<y> 0  </y>
				<z>-1.6</z>
			</position>
		</squeal>
		<squeal>
			<name>squeal_left</name>
			<mode>once</mode>
			<path>squeal_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>200</max-dist>
			<position>
				<x> 1  </x>
				<y> 1.8</y>
				<z>-1.6</z>
			</position>
		</squeal>
		<squeal>
			<name>squeal_right</name>
			<mode>once</mode>
			<path>squeal_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>200</max-dist>
			<position>
				<x> 1  </x>
				<y>-1.8</y>
				<z>-1.6</z>
			</position>
		</squeal>
		<rumble>
			<name>rumble</name>
			<mode>looped</mode>
			<path>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>
			<reference-dist>10</reference-dist>
			<max-dist>100</max-dist>
		</rumble>

		<!--	AVIONICS	-->
		<gyro>
			<name>gyro</name>
			<mode>looped</mode>
			<path>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>
			<reference-dist>1</reference-dist>
			<max-dist>3</max-dist>
		</gyro>
	</fx>
</PropertyList>
