diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-12 09:53:02 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-12 09:53:02 -0500 |
commit | 3996ccb4e2a0d81500d1b1370b2b97256d1ee465 (patch) | |
tree | e422ab35c9edbb034e44eab00f7a13666eeea6f8 | |
parent | de7ee5ef022a8ccaece0ea5f5402adedeafe36b4 (diff) | |
download | ether-3996ccb4e2a0d81500d1b1370b2b97256d1ee465.tar.gz ether-3996ccb4e2a0d81500d1b1370b2b97256d1ee465.tar.bz2 ether-3996ccb4e2a0d81500d1b1370b2b97256d1ee465.zip |
added transition and the world music
15 files changed, 342 insertions, 2 deletions
diff --git a/res/fmod/.cache/fsbcache/Desktop/53616416.fobj b/res/fmod/.cache/fsbcache/Desktop/53616416.fobj new file mode 100644 index 0000000..40284c4 --- /dev/null +++ b/res/fmod/.cache/fsbcache/Desktop/53616416.fobj | |||
Binary files differ | |||
diff --git a/res/fmod/.cache/fsbcache/Desktop/FC4C960C.fobj b/res/fmod/.cache/fsbcache/Desktop/FC4C960C.fobj new file mode 100644 index 0000000..07902ee --- /dev/null +++ b/res/fmod/.cache/fsbcache/Desktop/FC4C960C.fobj | |||
Binary files differ | |||
diff --git a/res/fmod/.cache/{4950f6ef-9130-45d0-8b66-14551c459bf7}.pdc b/res/fmod/.cache/{4950f6ef-9130-45d0-8b66-14551c459bf7}.pdc new file mode 100644 index 0000000..6d4dc10 --- /dev/null +++ b/res/fmod/.cache/{4950f6ef-9130-45d0-8b66-14551c459bf7}.pdc | |||
Binary files differ | |||
diff --git a/res/fmod/.cache/{af885a76-58da-456c-8cb9-d59f9cec6e43}.pdc b/res/fmod/.cache/{af885a76-58da-456c-8cb9-d59f9cec6e43}.pdc new file mode 100644 index 0000000..411de71 --- /dev/null +++ b/res/fmod/.cache/{af885a76-58da-456c-8cb9-d59f9cec6e43}.pdc | |||
Binary files differ | |||
diff --git a/res/fmod/.user/Metadata/Event/{45d68279-4042-4001-9cc3-fe7741328d02}.user.xml b/res/fmod/.user/Metadata/Event/{45d68279-4042-4001-9cc3-fe7741328d02}.user.xml index eb068de..88c7262 100644 --- a/res/fmod/.user/Metadata/Event/{45d68279-4042-4001-9cc3-fe7741328d02}.user.xml +++ b/res/fmod/.user/Metadata/Event/{45d68279-4042-4001-9cc3-fe7741328d02}.user.xml | |||
@@ -36,6 +36,7 @@ | |||
36 | <object class="SingleSound" id="{2e1aae44-3e34-4f3c-b7ea-219fc2f610cb}"/> | 36 | <object class="SingleSound" id="{2e1aae44-3e34-4f3c-b7ea-219fc2f610cb}"/> |
37 | <object class="EventMixerGroup" id="{46fce461-1c11-49c1-93c1-3ebeb917fb68}"/> | 37 | <object class="EventMixerGroup" id="{46fce461-1c11-49c1-93c1-3ebeb917fb68}"/> |
38 | <object class="LoopRegion" id="{04eb3e5e-90d1-4bd6-8ab8-19cee8511d55}"/> | 38 | <object class="LoopRegion" id="{04eb3e5e-90d1-4bd6-8ab8-19cee8511d55}"/> |
39 | <object class="ADSRModulator" id="{d7d6bfb3-eb09-4739-815b-34432735d093}"/> | ||
39 | <object class="MixerBusEffectChain" id="{f14bc47b-e50f-4aee-9792-59f5919a7848}"/> | 40 | <object class="MixerBusEffectChain" id="{f14bc47b-e50f-4aee-9792-59f5919a7848}"/> |
40 | <object class="MixerBusPanner" id="{fd195a95-1360-427b-955e-4582768889b4}"/> | 41 | <object class="MixerBusPanner" id="{fd195a95-1360-427b-955e-4582768889b4}"/> |
41 | <object class="MixerBusFader" id="{78e09892-0e07-4c72-98ee-132122892837}"/> | 42 | <object class="MixerBusFader" id="{78e09892-0e07-4c72-98ee-132122892837}"/> |
diff --git a/res/fmod/.user/Metadata/Event/{866909f7-fd3a-4782-ac46-cb2091c5fa44}.user.xml b/res/fmod/.user/Metadata/Event/{866909f7-fd3a-4782-ac46-cb2091c5fa44}.user.xml index 7815593..1c0f735 100644 --- a/res/fmod/.user/Metadata/Event/{866909f7-fd3a-4782-ac46-cb2091c5fa44}.user.xml +++ b/res/fmod/.user/Metadata/Event/{866909f7-fd3a-4782-ac46-cb2091c5fa44}.user.xml | |||
@@ -41,6 +41,7 @@ | |||
41 | <object class="SingleSound" id="{7dc4512f-172b-423c-9fae-ca36a9c988e5}"/> | 41 | <object class="SingleSound" id="{7dc4512f-172b-423c-9fae-ca36a9c988e5}"/> |
42 | <object class="EventMixerGroup" id="{f2adf259-6eb7-4052-973e-8fc29630bf46}"/> | 42 | <object class="EventMixerGroup" id="{f2adf259-6eb7-4052-973e-8fc29630bf46}"/> |
43 | <object class="LoopRegion" id="{ce6b2b00-2634-446a-9046-01deb8ae4981}"/> | 43 | <object class="LoopRegion" id="{ce6b2b00-2634-446a-9046-01deb8ae4981}"/> |
44 | <object class="ADSRModulator" id="{9717afe5-fde9-458b-8521-5ffd341d46fd}"/> | ||
44 | <object class="MixerBusEffectChain" id="{883e01ca-d7e5-4d12-8e8c-0aef033c3390}"/> | 45 | <object class="MixerBusEffectChain" id="{883e01ca-d7e5-4d12-8e8c-0aef033c3390}"/> |
45 | <object class="MixerBusPanner" id="{560f2c6b-b85c-4c42-848e-3ff425fd0776}"/> | 46 | <object class="MixerBusPanner" id="{560f2c6b-b85c-4c42-848e-3ff425fd0776}"/> |
46 | <object class="MixerBusFader" id="{e3116fa6-9182-44b8-8441-972dda056bb3}"/> | 47 | <object class="MixerBusFader" id="{e3116fa6-9182-44b8-8441-972dda056bb3}"/> |
diff --git a/res/fmod/.user/Metadata/Event/{90a8e470-61b2-4f80-a597-f8c9b0341fab}.user.xml b/res/fmod/.user/Metadata/Event/{90a8e470-61b2-4f80-a597-f8c9b0341fab}.user.xml new file mode 100644 index 0000000..d743432 --- /dev/null +++ b/res/fmod/.user/Metadata/Event/{90a8e470-61b2-4f80-a597-f8c9b0341fab}.user.xml | |||
@@ -0,0 +1,37 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <objects serializationModel="Studio.01.10.00"> | ||
3 | <object class="Event" id="{90a8e470-61b2-4f80-a597-f8c9b0341fab}"> | ||
4 | <relationship name="selectables"> | ||
5 | <destination>{6e452d5e-5bf7-4827-af9a-8004e6d36ca1}</destination> | ||
6 | </relationship> | ||
7 | <relationship name="uiLastParameterSelection"> | ||
8 | <destination>{ef5c4690-ec80-418a-84de-a4dfd37f138c}</destination> | ||
9 | </relationship> | ||
10 | </object> | ||
11 | <object class="MasterTrack" id="{141265f9-4c9c-4ca5-87e7-7e782e452f0e}"/> | ||
12 | <object class="MixerInput" id="{3fd15b13-7a5e-4116-98a1-67ac72f427a0}"/> | ||
13 | <object class="EventAutomatableProperties" id="{a4cf578c-3cf5-4447-800e-4e1d6fd06043}"/> | ||
14 | <object class="MarkerTrack" id="{6616acb0-2201-43eb-91c4-212bbbddd198}"/> | ||
15 | <object class="GroupTrack" id="{09db67e2-5f36-45b5-96e2-a230642fafe5}"/> | ||
16 | <object class="Timeline" id="{ef5c4690-ec80-418a-84de-a4dfd37f138c}"> | ||
17 | <property name="uiLastRulerScaleRatio"> | ||
18 | <value>0.0092614869293602322</value> | ||
19 | </property> | ||
20 | </object> | ||
21 | <object class="EventMixerMaster" id="{a2b220d8-a415-499a-84ce-c723263b372c}"> | ||
22 | <relationship name="input"> | ||
23 | <destination>{8f3e4509-baf7-4882-b9ea-8129db6bdebc}</destination> | ||
24 | </relationship> | ||
25 | </object> | ||
26 | <object class="MixerBusEffectChain" id="{8d461d61-bd25-4cca-94be-3fccce828cd7}"/> | ||
27 | <object class="MixerBusPanner" id="{9570e1ee-6afd-4143-9c9f-e1b7819ae3d6}"/> | ||
28 | <object class="SingleSound" id="{6e452d5e-5bf7-4827-af9a-8004e6d36ca1}"/> | ||
29 | <object class="EventMixerGroup" id="{8f3e4509-baf7-4882-b9ea-8129db6bdebc}"/> | ||
30 | <object class="MixerBusEffectChain" id="{5dca91d8-e6fd-4027-9028-1992d986543d}"/> | ||
31 | <object class="MixerBusPanner" id="{d205406a-2c3c-4909-8cdc-db61197df975}"/> | ||
32 | <object class="MixerBusFader" id="{0c312cc0-360a-48d9-834a-6f448c1f6448}"/> | ||
33 | <object class="MixerBusEffectChain" id="{d187417a-6a8d-43d9-9b7c-e9fb0ede344d}"/> | ||
34 | <object class="MixerBusPanner" id="{ff8df20f-7581-4164-a600-a0a47ff48ea0}"/> | ||
35 | <object class="MixerBusFader" id="{f422dcf8-7754-4dab-a09d-d0cf521e6b54}"/> | ||
36 | <object class="MixerBusFader" id="{5910ec09-2558-4f9d-a61a-fb1f2c6a1e9c}"/> | ||
37 | </objects> | ||
diff --git a/res/fmod/Assets/transition2.wav b/res/fmod/Assets/transition2.wav new file mode 100644 index 0000000..138c375 --- /dev/null +++ b/res/fmod/Assets/transition2.wav | |||
Binary files differ | |||
diff --git a/res/fmod/Metadata/AudioFile/{4950f6ef-9130-45d0-8b66-14551c459bf7}.xml b/res/fmod/Metadata/AudioFile/{4950f6ef-9130-45d0-8b66-14551c459bf7}.xml new file mode 100644 index 0000000..6a95627 --- /dev/null +++ b/res/fmod/Metadata/AudioFile/{4950f6ef-9130-45d0-8b66-14551c459bf7}.xml | |||
@@ -0,0 +1,23 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <objects serializationModel="Studio.01.10.00"> | ||
3 | <object class="AudioFile" id="{4950f6ef-9130-45d0-8b66-14551c459bf7}"> | ||
4 | <property name="assetPath"> | ||
5 | <value>transition2.wav</value> | ||
6 | </property> | ||
7 | <property name="isStreaming"> | ||
8 | <value>true</value> | ||
9 | </property> | ||
10 | <property name="frequencyInKHz"> | ||
11 | <value>44.0999985</value> | ||
12 | </property> | ||
13 | <property name="channelCount"> | ||
14 | <value>2</value> | ||
15 | </property> | ||
16 | <property name="length"> | ||
17 | <value>16.262857142857143</value> | ||
18 | </property> | ||
19 | <relationship name="masterAssetFolder"> | ||
20 | <destination>{4c4e21c6-cc51-4a2c-b05e-fb67da4f7ed1}</destination> | ||
21 | </relationship> | ||
22 | </object> | ||
23 | </objects> | ||
diff --git a/res/fmod/Metadata/Event/{45d68279-4042-4001-9cc3-fe7741328d02}.xml b/res/fmod/Metadata/Event/{45d68279-4042-4001-9cc3-fe7741328d02}.xml index f1fb334..06d7d7c 100644 --- a/res/fmod/Metadata/Event/{45d68279-4042-4001-9cc3-fe7741328d02}.xml +++ b/res/fmod/Metadata/Event/{45d68279-4042-4001-9cc3-fe7741328d02}.xml | |||
@@ -99,6 +99,9 @@ | |||
99 | </relationship> | 99 | </relationship> |
100 | </object> | 100 | </object> |
101 | <object class="EventMixerMaster" id="{11988232-27c1-46ce-a702-72f0ebca0568}"> | 101 | <object class="EventMixerMaster" id="{11988232-27c1-46ce-a702-72f0ebca0568}"> |
102 | <relationship name="modulators"> | ||
103 | <destination>{d7d6bfb3-eb09-4739-815b-34432735d093}</destination> | ||
104 | </relationship> | ||
102 | <relationship name="effectChain"> | 105 | <relationship name="effectChain"> |
103 | <destination>{f14bc47b-e50f-4aee-9792-59f5919a7848}</destination> | 106 | <destination>{f14bc47b-e50f-4aee-9792-59f5919a7848}</destination> |
104 | </relationship> | 107 | </relationship> |
@@ -189,6 +192,23 @@ | |||
189 | <destination>{07e04557-2cf3-4129-81e4-b053182f1e64}</destination> | 192 | <destination>{07e04557-2cf3-4129-81e4-b053182f1e64}</destination> |
190 | </relationship> | 193 | </relationship> |
191 | </object> | 194 | </object> |
195 | <object class="ADSRModulator" id="{d7d6bfb3-eb09-4739-815b-34432735d093}"> | ||
196 | <property name="nameOfPropertyBeingModulated"> | ||
197 | <value>volume</value> | ||
198 | </property> | ||
199 | <property name="initialValue"> | ||
200 | <value>-80</value> | ||
201 | </property> | ||
202 | <property name="attackTime"> | ||
203 | <value>0</value> | ||
204 | </property> | ||
205 | <property name="peakValue"> | ||
206 | <value>-0.577777863</value> | ||
207 | </property> | ||
208 | <property name="releaseTime"> | ||
209 | <value>3019.23145</value> | ||
210 | </property> | ||
211 | </object> | ||
192 | <object class="MixerBusEffectChain" id="{f14bc47b-e50f-4aee-9792-59f5919a7848}"> | 212 | <object class="MixerBusEffectChain" id="{f14bc47b-e50f-4aee-9792-59f5919a7848}"> |
193 | <relationship name="effects"> | 213 | <relationship name="effects"> |
194 | <destination>{467c1d30-2bc6-4dbc-a22c-c5a90e4f0efd}</destination> | 214 | <destination>{467c1d30-2bc6-4dbc-a22c-c5a90e4f0efd}</destination> |
diff --git a/res/fmod/Metadata/Event/{866909f7-fd3a-4782-ac46-cb2091c5fa44}.xml b/res/fmod/Metadata/Event/{866909f7-fd3a-4782-ac46-cb2091c5fa44}.xml index 89fb73e..f76b1d1 100644 --- a/res/fmod/Metadata/Event/{866909f7-fd3a-4782-ac46-cb2091c5fa44}.xml +++ b/res/fmod/Metadata/Event/{866909f7-fd3a-4782-ac46-cb2091c5fa44}.xml | |||
@@ -112,6 +112,9 @@ | |||
112 | </relationship> | 112 | </relationship> |
113 | </object> | 113 | </object> |
114 | <object class="EventMixerMaster" id="{775d1eed-cc67-4ea8-b10f-96e5737e51e2}"> | 114 | <object class="EventMixerMaster" id="{775d1eed-cc67-4ea8-b10f-96e5737e51e2}"> |
115 | <relationship name="modulators"> | ||
116 | <destination>{9717afe5-fde9-458b-8521-5ffd341d46fd}</destination> | ||
117 | </relationship> | ||
115 | <relationship name="effectChain"> | 118 | <relationship name="effectChain"> |
116 | <destination>{883e01ca-d7e5-4d12-8e8c-0aef033c3390}</destination> | 119 | <destination>{883e01ca-d7e5-4d12-8e8c-0aef033c3390}</destination> |
117 | </relationship> | 120 | </relationship> |
@@ -241,6 +244,26 @@ | |||
241 | <destination>{b9682560-6a3d-4266-a362-9c44d0be0f85}</destination> | 244 | <destination>{b9682560-6a3d-4266-a362-9c44d0be0f85}</destination> |
242 | </relationship> | 245 | </relationship> |
243 | </object> | 246 | </object> |
247 | <object class="ADSRModulator" id="{9717afe5-fde9-458b-8521-5ffd341d46fd}"> | ||
248 | <property name="nameOfPropertyBeingModulated"> | ||
249 | <value>volume</value> | ||
250 | </property> | ||
251 | <property name="initialValue"> | ||
252 | <value>-80</value> | ||
253 | </property> | ||
254 | <property name="attackTime"> | ||
255 | <value>0</value> | ||
256 | </property> | ||
257 | <property name="peakValue"> | ||
258 | <value>-0.577777863</value> | ||
259 | </property> | ||
260 | <property name="releaseTime"> | ||
261 | <value>3019.23022</value> | ||
262 | </property> | ||
263 | <property name="releaseShape"> | ||
264 | <value>0.0316919424</value> | ||
265 | </property> | ||
266 | </object> | ||
244 | <object class="MixerBusEffectChain" id="{883e01ca-d7e5-4d12-8e8c-0aef033c3390}"> | 267 | <object class="MixerBusEffectChain" id="{883e01ca-d7e5-4d12-8e8c-0aef033c3390}"> |
245 | <relationship name="effects"> | 268 | <relationship name="effects"> |
246 | <destination>{8b3bb0b1-2f04-42f1-bf22-caecda4ce070}</destination> | 269 | <destination>{8b3bb0b1-2f04-42f1-bf22-caecda4ce070}</destination> |
diff --git a/res/fmod/Metadata/Event/{90a8e470-61b2-4f80-a597-f8c9b0341fab}.xml b/res/fmod/Metadata/Event/{90a8e470-61b2-4f80-a597-f8c9b0341fab}.xml new file mode 100644 index 0000000..91315ac --- /dev/null +++ b/res/fmod/Metadata/Event/{90a8e470-61b2-4f80-a597-f8c9b0341fab}.xml | |||
@@ -0,0 +1,161 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <objects serializationModel="Studio.01.10.00"> | ||
3 | <object class="Event" id="{90a8e470-61b2-4f80-a597-f8c9b0341fab}"> | ||
4 | <property name="name"> | ||
5 | <value>transition</value> | ||
6 | </property> | ||
7 | <property name="outputFormat"> | ||
8 | <value>1</value> | ||
9 | </property> | ||
10 | <relationship name="folder"> | ||
11 | <destination>{b10a4c1b-72f0-4676-bbef-b450aaa46cb6}</destination> | ||
12 | </relationship> | ||
13 | <relationship name="mixer"> | ||
14 | <destination>{cfb15eaa-432d-4df9-9a07-3a225c72d03e}</destination> | ||
15 | </relationship> | ||
16 | <relationship name="masterTrack"> | ||
17 | <destination>{141265f9-4c9c-4ca5-87e7-7e782e452f0e}</destination> | ||
18 | </relationship> | ||
19 | <relationship name="mixerInput"> | ||
20 | <destination>{3fd15b13-7a5e-4116-98a1-67ac72f427a0}</destination> | ||
21 | </relationship> | ||
22 | <relationship name="automatableProperties"> | ||
23 | <destination>{a4cf578c-3cf5-4447-800e-4e1d6fd06043}</destination> | ||
24 | </relationship> | ||
25 | <relationship name="markerTracks"> | ||
26 | <destination>{6616acb0-2201-43eb-91c4-212bbbddd198}</destination> | ||
27 | </relationship> | ||
28 | <relationship name="groupTracks"> | ||
29 | <destination>{09db67e2-5f36-45b5-96e2-a230642fafe5}</destination> | ||
30 | </relationship> | ||
31 | <relationship name="timeline"> | ||
32 | <destination>{ef5c4690-ec80-418a-84de-a4dfd37f138c}</destination> | ||
33 | </relationship> | ||
34 | <relationship name="banks"> | ||
35 | <destination>{a23d2b1c-914e-48d4-8df9-80f6edad6c28}</destination> | ||
36 | </relationship> | ||
37 | </object> | ||
38 | <object class="EventMixer" id="{cfb15eaa-432d-4df9-9a07-3a225c72d03e}"> | ||
39 | <relationship name="masterBus"> | ||
40 | <destination>{a2b220d8-a415-499a-84ce-c723263b372c}</destination> | ||
41 | </relationship> | ||
42 | </object> | ||
43 | <object class="MasterTrack" id="{141265f9-4c9c-4ca5-87e7-7e782e452f0e}"> | ||
44 | <relationship name="mixerGroup"> | ||
45 | <destination>{a2b220d8-a415-499a-84ce-c723263b372c}</destination> | ||
46 | </relationship> | ||
47 | </object> | ||
48 | <object class="MixerInput" id="{3fd15b13-7a5e-4116-98a1-67ac72f427a0}"> | ||
49 | <relationship name="effectChain"> | ||
50 | <destination>{8d461d61-bd25-4cca-94be-3fccce828cd7}</destination> | ||
51 | </relationship> | ||
52 | <relationship name="panner"> | ||
53 | <destination>{9570e1ee-6afd-4143-9c9f-e1b7819ae3d6}</destination> | ||
54 | </relationship> | ||
55 | <relationship name="output"> | ||
56 | <destination>{a028aeaa-4166-48ea-881f-bb967c81e6f1}</destination> | ||
57 | </relationship> | ||
58 | </object> | ||
59 | <object class="EventAutomatableProperties" id="{a4cf578c-3cf5-4447-800e-4e1d6fd06043}"/> | ||
60 | <object class="MarkerTrack" id="{6616acb0-2201-43eb-91c4-212bbbddd198}"/> | ||
61 | <object class="GroupTrack" id="{09db67e2-5f36-45b5-96e2-a230642fafe5}"> | ||
62 | <relationship name="modules"> | ||
63 | <destination>{6e452d5e-5bf7-4827-af9a-8004e6d36ca1}</destination> | ||
64 | </relationship> | ||
65 | <relationship name="mixerGroup"> | ||
66 | <destination>{8f3e4509-baf7-4882-b9ea-8129db6bdebc}</destination> | ||
67 | </relationship> | ||
68 | </object> | ||
69 | <object class="Timeline" id="{ef5c4690-ec80-418a-84de-a4dfd37f138c}"> | ||
70 | <relationship name="modules"> | ||
71 | <destination>{6e452d5e-5bf7-4827-af9a-8004e6d36ca1}</destination> | ||
72 | </relationship> | ||
73 | </object> | ||
74 | <object class="EventMixerMaster" id="{a2b220d8-a415-499a-84ce-c723263b372c}"> | ||
75 | <relationship name="effectChain"> | ||
76 | <destination>{5dca91d8-e6fd-4027-9028-1992d986543d}</destination> | ||
77 | </relationship> | ||
78 | <relationship name="panner"> | ||
79 | <destination>{d205406a-2c3c-4909-8cdc-db61197df975}</destination> | ||
80 | </relationship> | ||
81 | <relationship name="mixer"> | ||
82 | <destination>{cfb15eaa-432d-4df9-9a07-3a225c72d03e}</destination> | ||
83 | </relationship> | ||
84 | </object> | ||
85 | <object class="MixerBusEffectChain" id="{8d461d61-bd25-4cca-94be-3fccce828cd7}"> | ||
86 | <relationship name="effects"> | ||
87 | <destination>{0c312cc0-360a-48d9-834a-6f448c1f6448}</destination> | ||
88 | </relationship> | ||
89 | </object> | ||
90 | <object class="MixerBusPanner" id="{9570e1ee-6afd-4143-9c9f-e1b7819ae3d6}"/> | ||
91 | <object class="SingleSound" id="{6e452d5e-5bf7-4827-af9a-8004e6d36ca1}"> | ||
92 | <property name="start"> | ||
93 | <value>3</value> | ||
94 | </property> | ||
95 | <property name="length"> | ||
96 | <value>9</value> | ||
97 | </property> | ||
98 | <relationship name="fadeOutCurve"> | ||
99 | <destination>{bf90cdf2-31f3-4500-ae87-e7d7e7ad083b}</destination> | ||
100 | </relationship> | ||
101 | <relationship name="audioFile"> | ||
102 | <destination>{4950f6ef-9130-45d0-8b66-14551c459bf7}</destination> | ||
103 | </relationship> | ||
104 | </object> | ||
105 | <object class="EventMixerGroup" id="{8f3e4509-baf7-4882-b9ea-8129db6bdebc}"> | ||
106 | <property name="name"> | ||
107 | <value>Audio 1</value> | ||
108 | </property> | ||
109 | <relationship name="effectChain"> | ||
110 | <destination>{d187417a-6a8d-43d9-9b7c-e9fb0ede344d}</destination> | ||
111 | </relationship> | ||
112 | <relationship name="panner"> | ||
113 | <destination>{ff8df20f-7581-4164-a600-a0a47ff48ea0}</destination> | ||
114 | </relationship> | ||
115 | <relationship name="output"> | ||
116 | <destination>{a2b220d8-a415-499a-84ce-c723263b372c}</destination> | ||
117 | </relationship> | ||
118 | </object> | ||
119 | <object class="MixerBusEffectChain" id="{5dca91d8-e6fd-4027-9028-1992d986543d}"> | ||
120 | <relationship name="effects"> | ||
121 | <destination>{f422dcf8-7754-4dab-a09d-d0cf521e6b54}</destination> | ||
122 | </relationship> | ||
123 | </object> | ||
124 | <object class="MixerBusPanner" id="{d205406a-2c3c-4909-8cdc-db61197df975}"/> | ||
125 | <object class="MixerBusFader" id="{0c312cc0-360a-48d9-834a-6f448c1f6448}"/> | ||
126 | <object class="FadeCurve" id="{bf90cdf2-31f3-4500-ae87-e7d7e7ad083b}"> | ||
127 | <relationship name="startPoint"> | ||
128 | <destination>{80da9461-aed2-4945-bcc2-1cf3d134eee2}</destination> | ||
129 | </relationship> | ||
130 | <relationship name="endPoint"> | ||
131 | <destination>{edb78426-fb94-4e1b-ae37-eeba2c3625fb}</destination> | ||
132 | </relationship> | ||
133 | </object> | ||
134 | <object class="MixerBusEffectChain" id="{d187417a-6a8d-43d9-9b7c-e9fb0ede344d}"> | ||
135 | <relationship name="effects"> | ||
136 | <destination>{5910ec09-2558-4f9d-a61a-fb1f2c6a1e9c}</destination> | ||
137 | </relationship> | ||
138 | </object> | ||
139 | <object class="MixerBusPanner" id="{ff8df20f-7581-4164-a600-a0a47ff48ea0}"/> | ||
140 | <object class="MixerBusFader" id="{f422dcf8-7754-4dab-a09d-d0cf521e6b54}"/> | ||
141 | <object class="AutomationPoint" id="{80da9461-aed2-4945-bcc2-1cf3d134eee2}"> | ||
142 | <property name="position"> | ||
143 | <value>11.624999999999989</value> | ||
144 | </property> | ||
145 | <property name="value"> | ||
146 | <value>1</value> | ||
147 | </property> | ||
148 | <property name="curveShape"> | ||
149 | <value>0.25471893</value> | ||
150 | </property> | ||
151 | </object> | ||
152 | <object class="AutomationPoint" id="{edb78426-fb94-4e1b-ae37-eeba2c3625fb}"> | ||
153 | <property name="position"> | ||
154 | <value>11.999999999999989</value> | ||
155 | </property> | ||
156 | <property name="value"> | ||
157 | <value>0</value> | ||
158 | </property> | ||
159 | </object> | ||
160 | <object class="MixerBusFader" id="{5910ec09-2558-4f9d-a61a-fb1f2c6a1e9c}"/> | ||
161 | </objects> | ||
diff --git a/src/main.cpp b/src/main.cpp index cd1a8c2..1805357 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -419,8 +419,12 @@ void setZoom(Game& game, size_t zoom) | |||
419 | game.muxer.setMusicLevel(0); | 419 | game.muxer.setMusicLevel(0); |
420 | } else if (zoomLevel < 3) { | 420 | } else if (zoomLevel < 3) { |
421 | game.muxer.setMusicLevel(1); | 421 | game.muxer.setMusicLevel(1); |
422 | } else { | 422 | } else if (zoomLevel < 5) { |
423 | game.muxer.setMusicLevel(2); | 423 | game.muxer.setMusicLevel(2); |
424 | } else if (zoomLevel < 7) { | ||
425 | game.muxer.setMusicLevel(3); | ||
426 | } else { | ||
427 | game.muxer.setMusicLevel(4); | ||
424 | } | 428 | } |
425 | } | 429 | } |
426 | 430 | ||
@@ -493,6 +497,7 @@ int main(int, char**) | |||
493 | quit = true; | 497 | quit = true; |
494 | } else { | 498 | } else { |
495 | losing = LoseState::PoppingLamps; | 499 | losing = LoseState::PoppingLamps; |
500 | game.muxer.stopMusic(); | ||
496 | } | 501 | } |
497 | } else if (e.type == SDL_KEYDOWN) | 502 | } else if (e.type == SDL_KEYDOWN) |
498 | { | 503 | { |
@@ -505,6 +510,7 @@ int main(int, char**) | |||
505 | quit = true; | 510 | quit = true; |
506 | } else { | 511 | } else { |
507 | losing = LoseState::PoppingLamps; | 512 | losing = LoseState::PoppingLamps; |
513 | game.muxer.stopMusic(); | ||
508 | } | 514 | } |
509 | 515 | ||
510 | break; | 516 | break; |
diff --git a/src/muxer.cpp b/src/muxer.cpp index 5b09ef8..3450187 100644 --- a/src/muxer.cpp +++ b/src/muxer.cpp | |||
@@ -62,9 +62,65 @@ void Muxer::playSoundAtPosition(std::string name, float x, float y) { | |||
62 | } | 62 | } |
63 | 63 | ||
64 | void Muxer::setMusicLevel(int level) { | 64 | void Muxer::setMusicLevel(int level) { |
65 | ERRCHECK(exploration_event_->setParameterByName("level", level)); | 65 | if (transition_state_ == TransitionState::Pre) { |
66 | if (level >= 3) { | ||
67 | transition_state_ = TransitionState::Transition; | ||
68 | ERRCHECK(exploration_event_->stop(FMOD_STUDIO_STOP_ALLOWFADEOUT)); | ||
69 | ERRCHECK(exploration_event_->release()); | ||
70 | |||
71 | FMOD::Studio::EventDescription* eventDescription = nullptr; | ||
72 | ERRCHECK(system_->getEvent("event:/transition", &eventDescription)); | ||
73 | ERRCHECK(eventDescription->createInstance(&transition_event_)); | ||
74 | ERRCHECK(transition_event_->start()); | ||
75 | } else { | ||
76 | ERRCHECK(exploration_event_->setParameterByName("level", level)); | ||
77 | } | ||
78 | } else if (transition_state_ == TransitionState::Post) { | ||
79 | if (level <= 3) { | ||
80 | ERRCHECK(the_world_event_->setParameterByName("level_full", 0)); | ||
81 | } else { | ||
82 | ERRCHECK(the_world_event_->setParameterByName("level_full", level - 3)); | ||
83 | } | ||
84 | } | ||
85 | } | ||
86 | |||
87 | void Muxer::stopMusic() { | ||
88 | switch (transition_state_) { | ||
89 | case TransitionState::Pre: { | ||
90 | ERRCHECK(exploration_event_->stop(FMOD_STUDIO_STOP_ALLOWFADEOUT)); | ||
91 | break; | ||
92 | } | ||
93 | case TransitionState::Transition: { | ||
94 | ERRCHECK(transition_event_->stop(FMOD_STUDIO_STOP_ALLOWFADEOUT)); | ||
95 | break; | ||
96 | } | ||
97 | case TransitionState::Post: { | ||
98 | ERRCHECK(the_world_event_->stop(FMOD_STUDIO_STOP_ALLOWFADEOUT)); | ||
99 | break; | ||
100 | } | ||
101 | case TransitionState::Stopped: { | ||
102 | // Do nothing. | ||
103 | break; | ||
104 | } | ||
105 | } | ||
106 | |||
107 | transition_state_ = TransitionState::Stopped; | ||
66 | } | 108 | } |
67 | 109 | ||
68 | void Muxer::update() { | 110 | void Muxer::update() { |
111 | if (transition_state_ == TransitionState::Transition) { | ||
112 | FMOD_STUDIO_PLAYBACK_STATE playbackState; | ||
113 | ERRCHECK(transition_event_->getPlaybackState(&playbackState)); | ||
114 | if (playbackState == FMOD_STUDIO_PLAYBACK_STOPPED) { | ||
115 | transition_state_ = TransitionState::Post; | ||
116 | transition_event_->release(); | ||
117 | |||
118 | FMOD::Studio::EventDescription* eventDescription = nullptr; | ||
119 | ERRCHECK(system_->getEvent("event:/the_world", &eventDescription)); | ||
120 | ERRCHECK(eventDescription->createInstance(&the_world_event_)); | ||
121 | ERRCHECK(the_world_event_->start()); | ||
122 | } | ||
123 | } | ||
124 | |||
69 | ERRCHECK(system_->update()); | 125 | ERRCHECK(system_->update()); |
70 | } | 126 | } |
diff --git a/src/muxer.h b/src/muxer.h index f99cce4..b1a5b26 100644 --- a/src/muxer.h +++ b/src/muxer.h | |||
@@ -15,6 +15,13 @@ public: | |||
15 | 15 | ||
16 | using fmod_system_ptr = std::unique_ptr<FMOD::Studio::System, fmod_system_deleter>; | 16 | using fmod_system_ptr = std::unique_ptr<FMOD::Studio::System, fmod_system_deleter>; |
17 | 17 | ||
18 | enum class TransitionState { | ||
19 | Pre, | ||
20 | Transition, | ||
21 | Post, | ||
22 | Stopped | ||
23 | }; | ||
24 | |||
18 | class Muxer { | 25 | class Muxer { |
19 | public: | 26 | public: |
20 | Muxer(); | 27 | Muxer(); |
@@ -25,11 +32,16 @@ public: | |||
25 | 32 | ||
26 | void setMusicLevel(int level); | 33 | void setMusicLevel(int level); |
27 | 34 | ||
35 | void stopMusic(); | ||
36 | |||
28 | void update(); | 37 | void update(); |
29 | 38 | ||
30 | private: | 39 | private: |
31 | fmod_system_ptr system_; | 40 | fmod_system_ptr system_; |
32 | FMOD::Studio::EventInstance* exploration_event_; | 41 | FMOD::Studio::EventInstance* exploration_event_; |
42 | FMOD::Studio::EventInstance* transition_event_; | ||
43 | FMOD::Studio::EventInstance* the_world_event_; | ||
44 | TransitionState transition_state_ = TransitionState::Pre; | ||
33 | }; | 45 | }; |
34 | 46 | ||
35 | #endif /* end of include guard: MUXER_H_3146C802 */ | 47 | #endif /* end of include guard: MUXER_H_3146C802 */ |