1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back! *
3 *----------------------------------------------------------*
4 * (c) 1995-2006 Artsoft Entertainment *
6 * Detmolder Strasse 189 *
9 * e-mail: info@artsoft.org *
10 *----------------------------------------------------------*
12 ***********************************************************/
14 #include "libgame/libgame.h"
18 /* List values that are not defined in the configuration file are set to
19 reliable default values. If that value is SND_ARG_UNDEFINED, it will
20 be dynamically determined, using some of the other list values. */
22 struct ConfigTypeInfo sound_config_suffix[] =
24 { ".mode_loop", ARG_UNDEFINED, TYPE_BOOLEAN },
25 { ".volume", "100", TYPE_INTEGER },
26 { ".priority", "0", TYPE_INTEGER },
31 struct ConfigInfo sound_config[] =
33 /* some default sounds */
34 { "[default].digging", "schlurf.wav" },
35 { "[default].collecting", "pong.wav" },
36 { "[default].snapping", "pong.wav" },
37 { "[default].pushing", "pusch.wav" },
38 { "[default].impact", "klopf.wav" },
39 { "[default].walking", "empty.wav" },
40 { "[default].passing", "gate.wav" },
41 { "[default].dying", "autsch.wav" },
42 { "[default].exploding", "roaaar.wav" },
43 { "[sp_default].exploding", "booom.wav" },
45 /* sounds for Boulder Dash style elements and actions */
46 { "bd_diamond.collecting", "pong.wav" },
47 { "bd_diamond.impact", "pling.wav" },
48 { "bd_rock.pushing", "pusch.wav" },
49 { "bd_rock.impact", "klopf.wav" },
50 { "bd_magic_wall.activating", "quirk.wav" },
51 { "bd_magic_wall.active", "miep.wav" },
52 { "bd_magic_wall.filling", "quirk.wav" },
53 { "bd_amoeba.waiting", UNDEFINED_FILENAME },
54 { "bd_amoeba.growing", "amoebe.wav" },
55 { "bd_amoeba.turning_to_gem", "pling.wav" },
56 { "bd_amoeba.turning_to_rock", "klopf.wav" },
57 { "bd_butterfly.moving", "klapper.wav" },
58 { "bd_butterfly.waiting", "klapper.wav" },
59 { "bd_firefly.moving", "roehr.wav" },
60 { "bd_firefly.waiting", "roehr.wav" },
62 /* sounds for Supaplex style elements and actions */
63 { "sp_base.digging", "base.wav" },
64 { "sp_buggy_base.digging", "base.wav" },
65 { "sp_buggy_base.active", "bug.wav" },
66 { "sp_infotron.collecting", "infotron.wav" },
67 { "sp_infotron.impact", "pling.wav" },
68 { "sp_zonk.pushing", "zonkpush.wav" },
69 { "sp_zonk.impact", "zonkdown.wav" },
70 { "sp_disk_red.collecting", "infotron.wav" },
71 { "sp_disk_orange.pushing", "zonkpush.wav" },
72 { "sp_disk_yellow.pushing", "pusch.wav" },
73 { "[sp_port].passing", "gate.wav" },
74 { "[sp_exit].passing", "exit.wav" },
75 { "[sp_exit].opening", UNDEFINED_FILENAME },
76 { "[sp_exit].closing", UNDEFINED_FILENAME },
77 { "sp_sniksnak.moving", UNDEFINED_FILENAME },
78 { "sp_sniksnak.waiting", UNDEFINED_FILENAME },
79 { "sp_electron.moving", UNDEFINED_FILENAME },
80 { "sp_electron.waiting", UNDEFINED_FILENAME },
81 { "sp_terminal.activating", UNDEFINED_FILENAME },
82 { "sp_terminal.active", UNDEFINED_FILENAME },
84 /* sounds for Sokoban style elements and actions */
85 { "[sokoban].pushing", "pusch.wav" },
86 { "[sokoban].filling", "deng.wav" },
87 { "[sokoban].emptying", UNDEFINED_FILENAME },
89 /* sounds for Emerald Mine style elements and actions */
90 { "[player].moving", "empty.wav" },
91 { "[player].moving.mode_loop", "false" },
92 { "sand.digging", "schlurf.wav" },
93 { "[emerald].collecting", "pong.wav" },
94 { "[emerald].impact", "pling.wav" },
95 { "diamond.collecting", "pong.wav" },
96 { "diamond.impact", "pling.wav" },
97 { "diamond.breaking", "quirk.wav" },
98 { "rock.pushing", "pusch.wav" },
99 { "rock.impact", "klopf.wav" },
100 { "bomb.pushing", "pusch.wav" },
101 { "nut.pushing", "knurk.wav" },
102 { "nut.breaking", "knack.wav" },
103 { "nut.impact", "klumpf.wav" },
104 { "[dynamite].collecting", "pong.wav" },
105 { "[dynamite].dropping", "deng.wav" },
106 { "[dynamite].active", "zisch.wav" },
107 { "[key].collecting", "pong.wav" },
108 { "[gate].passing", "gate.wav" },
109 { "bug.moving", "klapper.wav" },
110 { "bug.waiting", "klapper.wav" },
111 { "spaceship.moving", "roehr.wav" },
112 { "spaceship.waiting", "roehr.wav" },
113 { "yamyam.moving", UNDEFINED_FILENAME },
114 { "yamyam.waiting", "njam.wav" },
115 { "yamyam.digging", "njam.wav" },
116 { "robot.moving", "schlurf.wav" },
117 { "robot.moving.mode_loop", "false" },
118 { "robot.waiting", UNDEFINED_FILENAME },
119 { "robot_wheel.activating", "deng.wav" },
120 { "robot_wheel.active", "miep.wav" },
121 { "magic_wall.activating", "quirk.wav" },
122 { "magic_wall.active", "miep.wav" },
123 { "magic_wall.filling", "quirk.wav" },
124 { "dc_magic_wall.activating", "quirk.wav" },
125 { "dc_magic_wall.active", "miep.wav" },
126 { "dc_magic_wall.filling", "quirk.wav" },
127 { "[amoeba].waiting", UNDEFINED_FILENAME },
128 { "[amoeba].growing", "amoebe.wav" },
129 { "[amoeba].dropping", UNDEFINED_FILENAME },
130 { "acid.splashing", "blurb.wav" },
131 { "[quicksand].filling", UNDEFINED_FILENAME },
132 { "[quicksand].emptying", UNDEFINED_FILENAME },
133 { "[exit].opening", "oeffnen.wav" },
134 { "[exit].closing", "oeffnen.wav" },
135 { "[exit].passing", "buing.wav" },
136 { "[steel_exit].opening", "oeffnen.wav" },
137 { "[steel_exit].closing", "oeffnen.wav" },
138 { "[steel_exit].passing", "buing.wav" },
139 { "[em_exit].opening", "gong.wav" },
140 { "[em_exit].closing", UNDEFINED_FILENAME },
141 { "[em_exit].passing", "buing.wav" },
142 { "[em_steel_exit].opening", "gong.wav" },
143 { "[em_steel_exit].closing", UNDEFINED_FILENAME },
144 { "[em_steel_exit].passing", "buing.wav" },
145 { "penguin.passing", "buing.wav" },
147 /* sounds for Emerald Mine Club style elements and actions */
148 { "balloon.moving", UNDEFINED_FILENAME },
149 { "balloon.waiting", UNDEFINED_FILENAME },
150 { "balloon.pushing", "schlurf.wav" },
151 { "[balloon_switch].activating", UNDEFINED_FILENAME },
152 { "spring.moving", UNDEFINED_FILENAME },
153 { "spring.pushing", "pusch.wav" },
154 { "spring.impact", "klopf.wav" },
155 { "[wall].growing", UNDEFINED_FILENAME },
156 { "emc_android.pushing", "pusch.wav" },
157 { "emc_android.moving", "roehr.wav" },
158 { "emc_android.moving.mode_loop", "false" },
159 { "emc_android.dropping", "deng.wav" },
160 { "emc_magic_ball.dropping", "deng.wav" },
162 /* sounds for Diamond Caves style elements and actions */
163 { "pearl.collecting", "pong.wav" },
164 { "pearl.breaking", "knack.wav" },
165 { "pearl.impact", "pling.wav" },
166 { "crystal.collecting", "pong.wav" },
167 { "crystal.impact", "pling.wav" },
168 { "[envelope].collecting", "pong.wav" },
169 { "[envelope].opening", UNDEFINED_FILENAME },
170 { "[envelope].closing", UNDEFINED_FILENAME },
171 { "invisible_sand.digging", "schlurf.wav" },
172 { "invisible_sand.active.digging", "schlurf.wav" },
173 { "shield_normal.collecting", "pong.wav" },
174 { "shield_normal.active", UNDEFINED_FILENAME },
175 { "shield_deadly.collecting", "pong.wav" },
176 { "shield_deadly.active", UNDEFINED_FILENAME },
177 { "extra_time.collecting", "gong.wav" },
178 { "mole.moving", UNDEFINED_FILENAME },
179 { "mole.waiting", UNDEFINED_FILENAME },
180 { "mole.digging", "blurb.wav" },
181 { "[switchgate_switch].activating", UNDEFINED_FILENAME },
182 { "[switchgate].opening", "oeffnen.wav" },
183 { "[switchgate].closing", "oeffnen.wav" },
184 { "[switchgate].passing", "gate.wav" },
185 { "[timegate_switch].activating", "deng.wav" },
186 { "[timegate_switch].active", "miep.wav" },
187 { "[timegate_switch].deactivating", UNDEFINED_FILENAME },
188 { "[timegate].opening", "oeffnen.wav" },
189 { "[timegate].closing", "oeffnen.wav" },
190 { "[timegate].passing", "gate.wav" },
191 { "[conveyor_belt_switch].activating",UNDEFINED_FILENAME },
192 { "[conveyor_belt].active", UNDEFINED_FILENAME },
193 { "[conveyor_belt_switch].deactivating",UNDEFINED_FILENAME },
194 { "light_switch.activating", UNDEFINED_FILENAME },
195 { "light_switch.deactivating", UNDEFINED_FILENAME },
197 /* sounds for DX Boulderdash style elements and actions */
198 { "dx_supabomb.pushing", "pusch.wav" },
199 { "trap.digging", "schlurf.wav" },
200 { "trap.activating", UNDEFINED_FILENAME },
201 { "[tube].walking", UNDEFINED_FILENAME },
203 /* sounds for Rocks'n'Diamonds style elements and actions */
204 { "amoeba.turning_to_gem", "pling.wav" },
205 { "amoeba.turning_to_rock", "klopf.wav" },
206 { "speed_pill.collecting", "pong.wav" },
207 { "dynabomb_increase_number.collecting","pong.wav" },
208 { "dynabomb_increase_size.collecting","pong.wav" },
209 { "dynabomb_increase_power.collecting","pong.wav" },
210 { "[dynabomb].dropping", "deng.wav" },
211 { "[dynabomb].active", "zisch.wav" },
212 { "satellite.moving", UNDEFINED_FILENAME },
213 { "satellite.waiting", UNDEFINED_FILENAME },
214 { "satellite.pushing", "pusch.wav" },
215 { "lamp.activating", "deng.wav" },
216 { "lamp.deactivating", "deng.wav" },
217 { "time_orb_full.collecting", "gong.wav" },
218 { "time_orb_full.impact", "deng.wav" },
219 { "time_orb_empty.pushing", "pusch.wav" },
220 { "time_orb_empty.impact", "deng.wav" },
221 { "game_of_life.waiting", UNDEFINED_FILENAME },
222 { "game_of_life.growing", "amoebe.wav" },
223 { "biomaze.waiting", UNDEFINED_FILENAME },
224 { "biomaze.growing", "amoebe.wav" },
225 { "pacman.moving", UNDEFINED_FILENAME },
226 { "pacman.waiting", UNDEFINED_FILENAME },
227 { "pacman.digging", UNDEFINED_FILENAME },
228 { "dark_yamyam.moving", UNDEFINED_FILENAME },
229 { "dark_yamyam.waiting", "njam.wav" },
230 { "dark_yamyam.digging", UNDEFINED_FILENAME },
231 { "penguin.moving", UNDEFINED_FILENAME },
232 { "penguin.waiting", UNDEFINED_FILENAME },
233 { "pig.moving", UNDEFINED_FILENAME },
234 { "pig.waiting", UNDEFINED_FILENAME },
235 { "pig.digging", UNDEFINED_FILENAME },
236 { "dragon.moving", UNDEFINED_FILENAME },
237 { "dragon.waiting", UNDEFINED_FILENAME },
238 { "dragon.attacking", UNDEFINED_FILENAME },
240 /* sounds not associated to game elements (used for menu screens etc.) */
241 /* keyword to stop parser: "NO_MORE_ELEMENT_SOUNDS" <-- do not change! */
243 /* sounds for other game actions */
244 { "game.starting", UNDEFINED_FILENAME },
245 { "game.running_out_of_time", "gong.wav" },
246 { "game.leveltime_bonus", "sirr.wav" },
247 { "game.losing", "lachen.wav" },
248 { "game.winning", UNDEFINED_FILENAME },
249 { "game.sokoban_solving", "buing.wav" },
251 /* sounds for other non-game actions */
252 { "door.opening", "oeffnen.wav" },
253 { "door.closing", "oeffnen.wav" },
255 { "request.opening", UNDEFINED_FILENAME },
256 { "request.closing", UNDEFINED_FILENAME },
258 /* sounds for menu actions */
259 { "menu.item.activating", "empty.wav" },
260 { "menu.item.selecting", "base.wav" },
262 { "background.TITLE_INITIAL", UNDEFINED_FILENAME },
263 { "background.TITLE", UNDEFINED_FILENAME },
264 { "background.MAIN", UNDEFINED_FILENAME },
265 { "background.LEVELS", UNDEFINED_FILENAME },
266 { "background.SCORES", "halloffame.wav" },
267 { "background.SCORES.mode_loop", "false" },
268 { "background.EDITOR", UNDEFINED_FILENAME },
269 { "background.INFO", UNDEFINED_FILENAME },
270 { "background.SETUP", UNDEFINED_FILENAME },
272 { "background.titlescreen_initial_1", UNDEFINED_FILENAME },
273 { "background.titlescreen_initial_2", UNDEFINED_FILENAME },
274 { "background.titlescreen_initial_3", UNDEFINED_FILENAME },
275 { "background.titlescreen_initial_4", UNDEFINED_FILENAME },
276 { "background.titlescreen_initial_5", UNDEFINED_FILENAME },
277 { "background.titlescreen_1", UNDEFINED_FILENAME },
278 { "background.titlescreen_2", UNDEFINED_FILENAME },
279 { "background.titlescreen_3", UNDEFINED_FILENAME },
280 { "background.titlescreen_4", UNDEFINED_FILENAME },
281 { "background.titlescreen_5", UNDEFINED_FILENAME },
282 { "background.titlemessage_initial_1",UNDEFINED_FILENAME },
283 { "background.titlemessage_initial_2",UNDEFINED_FILENAME },
284 { "background.titlemessage_initial_3",UNDEFINED_FILENAME },
285 { "background.titlemessage_initial_4",UNDEFINED_FILENAME },
286 { "background.titlemessage_initial_5",UNDEFINED_FILENAME },
287 { "background.titlemessage_1", UNDEFINED_FILENAME },
288 { "background.titlemessage_2", UNDEFINED_FILENAME },
289 { "background.titlemessage_3", UNDEFINED_FILENAME },
290 { "background.titlemessage_4", UNDEFINED_FILENAME },
291 { "background.titlemessage_5", UNDEFINED_FILENAME },
294 { "[not used]", "antigrav.wav" },
295 { "[not used]", "bong.wav" },
296 { "[not used]", "fuel.wav" },
297 { "[not used]", "holz.wav" },
298 { "[not used]", "hui.wav" },
299 { "[not used]", "kabumm.wav" },
300 { "[not used]", "kink.wav" },
301 { "[not used]", "kling.wav" },
302 { "[not used]", "krach.wav" },
303 { "[not used]", "laser.wav" },
304 { "[not used]", "quiek.wav" },
305 { "[not used]", "rumms.wav" },
306 { "[not used]", "schlopp.wav" },
307 { "[not used]", "schrff.wav" },
308 { "[not used]", "schwirr.wav" },
309 { "[not used]", "slurp.wav" },
310 { "[not used]", "sproing.wav" },
311 { "[not used]", "warnton.wav" },
312 { "[not used]", "whoosh.wav" },
313 { "[not used]", "boom.wav" },