Window sounds.

parent 512043cb
......@@ -7,7 +7,11 @@
<!-- TODO Real sounds are available from videos -->
<fx>
<!-- FIXME Seprarate sounds for SP because of JSBSim vs. engine "helper" vs. flightrecorder beefs. -->
<!--
SIC Seprarate sounds for SP because:
SIC - JSBSim vs. engine "helper" vs. flightrecorder beefs.
SIC - cockpit windows
-->
<engine_mp>
......@@ -16,7 +20,13 @@
<mode>looped</mode>
<condition>
<not>
<property>/sim/current-view/internal</property>
<and>
<property>/sim/current-view/internal</property>
<less-than>
<property>instrumentation/jsbsim/systems/doors/window[0]/pos-norm</property>
<value>0.11</value>
</less-than>
</and>
</not>
</condition>
<pitch>
......@@ -50,7 +60,13 @@
<mode>looped</mode>
<condition>
<not>
<property>/sim/current-view/internal</property>
<and>
<property>/sim/current-view/internal</property>
<less-than>
<property>instrumentation/jsbsim/systems/doors/window[0]/pos-norm</property>
<value>0.11</value>
</less-than>
</and>
</not>
</condition>
<pitch>2.0</pitch>
......@@ -81,7 +97,13 @@
<mode>looped</mode>
<condition>
<not>
<property>/sim/current-view/internal</property>
<and>
<property>/sim/current-view/internal</property>
<less-than>
<property>instrumentation/jsbsim/systems/doors/window[0]/pos-norm</property>
<value>0.11</value>
</less-than>
</and>
</not>
</condition>
<pitch>
......@@ -115,7 +137,13 @@
<mode>looped</mode>
<condition>
<not>
<property>/sim/current-view/internal</property>
<and>
<property>/sim/current-view/internal</property>
<less-than>
<property>instrumentation/jsbsim/systems/doors/window[0]/pos-norm</property>
<value>0.11</value>
</less-than>
</and>
</not>
</condition>
<pitch>2.0</pitch>
......@@ -146,7 +174,13 @@
<mode>looped</mode>
<condition>
<not>
<property>/sim/current-view/internal</property>
<and>
<property>/sim/current-view/internal</property>
<less-than>
<property>instrumentation/jsbsim/systems/doors/window[1]/pos-norm</property>
<value>0.11</value>
</less-than>
</and>
</not>
</condition>
<pitch>
......@@ -180,7 +214,13 @@
<mode>looped</mode>
<condition>
<not>
<property>/sim/current-view/internal</property>
<and>
<property>/sim/current-view/internal</property>
<less-than>
<property>instrumentation/jsbsim/systems/doors/window[1]/pos-norm</property>
<value>0.11</value>
</less-than>
</and>
</not>
</condition>
<pitch>2.0</pitch>
......@@ -211,7 +251,13 @@
<mode>looped</mode>
<condition>
<not>
<property>/sim/current-view/internal</property>
<and>
<property>/sim/current-view/internal</property>
<less-than>
<property>instrumentation/jsbsim/systems/doors/window[1]/pos-norm</property>
<value>0.11</value>
</less-than>
</and>
</not>
</condition>
<pitch>
......@@ -245,7 +291,13 @@
<mode>looped</mode>
<condition>
<not>
<property>/sim/current-view/internal</property>
<and>
<property>/sim/current-view/internal</property>
<less-than>
<property>instrumentation/jsbsim/systems/doors/window[1]/pos-norm</property>
<value>0.11</value>
</less-than>
</and>
</not>
</condition>
<pitch>2.0</pitch>
......@@ -270,9 +322,6 @@
</engine_mp>
<!-- END FIXME -->
<engine>
<name>Turbine 1 Int</name>
<path>Sounds/turbine_loop.wav</path>
......@@ -587,6 +636,88 @@
</airflow>
<airflow>
<name>Window 0</name>
<path>Sounds/wind.wav</path>
<condition>
<property>sim/current-view/internal</property>
<greater-than>
<property>instrumentation/jsbsim/systems/doors/window[0]/pos-norm</property>
<value>0.11</value>
</greater-than>
</condition>
<mode>looped</mode>
<volume><property>velocities/airspeed-kt</property><factor>0.02</factor><max>4.0</max></volume>
<pitch><property>velocities/airspeed-kt</property><factor>0.0025</factor><offset>1.0</offset></pitch>
<reference-dist>0.25</reference-dist>
<max-dist>2.0</max-dist>
<position>
<x>-28.33</x>
<y>0.98</y>
<z>1.0</z>
</position>
</airflow>
<window>
<name>Window 0 Lock</name>
<path>Sounds/engstart.wav</path>
<condition>
<property>sim/current-view/internal</property>
<greater-than><property>instrumentation/jsbsim/systems/doors/window[0]/pos-norm</property><value>0.01</value></greater-than>
<less-than><property>instrumentation/jsbsim/systems/doors/window[0]/pos-norm</property><value>0.1</value></less-than>
</condition>
<mode>once</mode>
<reference-dist>0.25</reference-dist>
<max-dist>2.0</max-dist>
<position>
<x>-28.33</x>
<y>0.98</y>
<z>1.0</z>
</position>
</window>
<airflow>
<name>Window 1</name>
<path>Sounds/wind.wav</path>
<condition>
<property>sim/current-view/internal</property>
<greater-than>
<property>instrumentation/jsbsim/systems/doors/window[1]/pos-norm</property>
<value>0.11</value>
</greater-than>
</condition>
<mode>looped</mode>
<volume><property>velocities/airspeed-kt</property><factor>0.02</factor><max>4.0</max></volume>
<pitch><property>velocities/airspeed-kt</property><factor>0.0025</factor><offset>1.0</offset></pitch>
<reference-dist>0.25</reference-dist>
<max-dist>2.0</max-dist>
<position>
<x>-28.33</x>
<y>-0.98</y>
<z>1.0</z>
</position>
</airflow>
<window>
<name>Window 1 Lock</name>
<path>Sounds/engstart.wav</path>
<condition>
<property>sim/current-view/internal</property>
<greater-than><property>instrumentation/jsbsim/systems/doors/window[1]/pos-norm</property><value>0.01</value></greater-than>
<less-than><property>instrumentation/jsbsim/systems/doors/window[1]/pos-norm</property><value>0.1</value></less-than>
</condition>
<mode>once</mode>
<reference-dist>0.25</reference-dist>
<max-dist>2.0</max-dist>
<position>
<x>-28.33</x>
<y>-0.98</y>
<z>1.0</z>
</position>
</window>
<gear>
<name>Gear Front Lock</name>
<path>Sounds/door_close.wav</path>
......
......@@ -30,13 +30,23 @@
<property>propulsion/engine[3]/starter</property>
<property>propulsion/engine[3]/set-running</property>
<property>atmosphere/kludge/Habs-m</property>
<channel name="Doors" execrate="1200">
<!-- SIC These limits are softened, to be able to look out the window if the cone is stuck. -->
<switch name="&U;/allowed-window">
<default value="1"/>
<test logic="OR" value="0">
velocities/mach GT 0.4
atmosphere/kludge/Habs-m GT 3000.0
</test>
</switch>
<switch name="&U;/allowed-left">
<default value="1"/>
<test logic="OR" value="0">
velocities/v-km_h GT 10.0
propulsion/engine[0]/starter NE 0
propulsion/engine[0]/set-running NE 0
propulsion/engine[1]/starter NE 0
......@@ -47,7 +57,6 @@
<switch name="&U;/allowed-right">
<default value="1"/>
<test logic="OR" value="0">
velocities/v-km_h GT 10.0
propulsion/engine[2]/starter NE 0
propulsion/engine[2]/set-running NE 0
propulsion/engine[3]/starter NE 0
......@@ -73,7 +82,7 @@
<switch name="&U;/window[0]/func/inp-norm">
<default value="&U;/window[0]/cmd-norm"/>
<test value="0.0">
&U;/allowed-left EQ 0
&U;/allowed-window EQ 0
</test>
<clipto>
<min>0.0</min>
......@@ -88,7 +97,7 @@
<switch name="&U;/window[1]/func/inp-norm">
<default value="&U;/window[1]/cmd-norm"/>
<test value="0.0">
&U;/allowed-left EQ 0
&U;/allowed-window EQ 0
</test>
<clipto>
<min>0.0</min>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment