1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back! *
3 *----------------------------------------------------------*
4 * (c) 1995-2002 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 GFX_ARG_UNDEFINED, it will
20 be dynamically determined, using some of the other list values. */
22 struct ConfigInfo sound_config_suffix[] =
24 { ".mode_loop", ARG_UNDEFINED, TYPE_BOOLEAN },
29 struct ConfigInfo sound_config[] =
31 /* sounds for Boulder Dash style elements and actions */
32 { "bd_diamond.collecting", "pong.wav" },
33 { "bd_diamond.impact", "pling.wav" },
34 { "bd_rock.pushing", "pusch.wav" },
35 { "bd_rock.impact", "klopf.wav" },
36 { "bd_magic_wall.activating", "quirk.wav" },
37 { "bd_magic_wall.active", "miep.wav" },
38 { "bd_magic_wall.filling", "quirk.wav" },
39 { "bd_amoeba.waiting", UNDEFINED_FILENAME },
40 { "bd_amoeba.growing", "amoebe.wav" },
41 { "bd_amoeba.turning_to_gem", "pling.wav" },
42 { "bd_amoeba.turning_to_rock", "klopf.wav" },
43 { "bd_butterfly.moving", "klapper.wav" },
44 { "bd_butterfly.waiting", "klapper.wav" },
45 { "bd_firefly.moving", "roehr.wav" },
46 { "bd_firefly.waiting", "roehr.wav" },
48 /* sounds for Supaplex style elements and actions */
49 { "sp_base.digging", "base.wav" },
50 { "sp_buggy_base.digging", "base.wav" },
51 { "sp_buggy_base.active", "bug.wav" },
52 { "sp_infotron.collecting", "infotron.wav" },
53 { "sp_infotron.impact", "pling.wav" },
54 { "sp_zonk.pushing", "zonkpush.wav" },
55 { "sp_zonk.impact", "zonkdown.wav" },
56 { "sp_disk_red.collecting", "infotron.wav" },
57 { "sp_disk_orange.pushing", "zonkpush.wav" },
58 { "sp_disk_yellow.pushing", "pusch.wav" },
59 { "[sp_port].passing", "gate.wav" },
60 { "[sp_exit].passing", "exit.wav" },
61 { "[sp_exit].opening", UNDEFINED_FILENAME },
62 { "sp_sniksnak.moving", UNDEFINED_FILENAME },
63 { "sp_sniksnak.waiting", UNDEFINED_FILENAME },
64 { "sp_electron.moving", UNDEFINED_FILENAME },
65 { "sp_electron.waiting", UNDEFINED_FILENAME },
66 { "sp_terminal.activating", UNDEFINED_FILENAME },
67 { "sp_terminal.active", UNDEFINED_FILENAME },
69 /* sounds for Sokoban style elements and actions */
70 { "[sokoban].pushing", "pusch.wav" },
71 { "[sokoban].filling", "deng.wav" },
72 { "[sokoban].emptying", UNDEFINED_FILENAME },
74 /* sounds for Emerald Mine style elements and actions */
75 { "empty_space.digging", "empty.wav" },
76 { "sand.digging", "schlurf.wav" },
77 { "emerald.collecting", "pong.wav" },
78 { "emerald.impact", "pling.wav" },
79 { "diamond.collecting", "pong.wav" },
80 { "diamond.impact", "pling.wav" },
81 { "diamond.breaking", "quirk.wav" },
82 { "rock.pushing", "pusch.wav" },
83 { "rock.impact", "klopf.wav" },
84 { "bomb.pushing", "pusch.wav" },
85 { "nut.pushing", "knurk.wav" },
86 { "nut.breaking", "knack.wav" },
87 { "nut.impact", "klumpf.wav" },
88 { "[dynamite].collecting", "pong.wav" },
89 { "[dynamite].dropping", "deng.wav" },
90 { "[dynamite].active", "zisch.wav" },
91 { "[key].collecting", "pong.wav" },
92 { "[gate].passing", "gate.wav" },
93 { "bug.moving", "klapper.wav" },
94 { "bug.waiting", "klapper.wav" },
95 { "spaceship.moving", "roehr.wav" },
96 { "spaceship.waiting", "roehr.wav" },
97 { "yamyam.moving", UNDEFINED_FILENAME },
98 { "yamyam.waiting", "njam.wav" },
99 { "yamyam.digging", UNDEFINED_FILENAME },
100 { "robot.moving", "schlurf.wav" },
101 { "robot.moving.mode_loop", "false" },
102 { "robot.waiting", UNDEFINED_FILENAME },
103 { "robot_wheel.activating", "deng.wav" },
104 { "robot_wheel.active", "miep.wav" },
105 { "magic_wall.activating", "quirk.wav" },
106 { "magic_wall.active", "miep.wav" },
107 { "magic_wall.filling", "quirk.wav" },
108 { "[amoeba].waiting", UNDEFINED_FILENAME },
109 { "[amoeba].growing", "amoebe.wav" },
110 { "[amoeba].dropping", UNDEFINED_FILENAME },
111 { "acid.splashing", "blurb.wav" },
112 { "[quicksand].filling", UNDEFINED_FILENAME },
113 { "[quicksand].emptying", UNDEFINED_FILENAME },
114 { "[exit].opening", "oeffnen.wav" },
115 { "[exit].passing", "buing.wav" },
116 { "penguin.passing", "buing.wav" },
118 /* sounds for Emerald Mine Club style elements and actions */
119 { "balloon.moving", UNDEFINED_FILENAME },
120 { "balloon.waiting", UNDEFINED_FILENAME },
121 { "balloon.pushing", "schlurf.wav" },
122 { "[balloon_switch].activating", UNDEFINED_FILENAME },
123 { "spring.moving", UNDEFINED_FILENAME },
124 { "spring.pushing", "pusch.wav" },
125 { "spring.impact", "klopf.wav" },
126 { "[wall].growing", UNDEFINED_FILENAME },
128 /* sounds for Diamond Caves style elements and actions */
129 { "pearl.collecting", "pong.wav" },
130 { "pearl.breaking", "knack.wav" },
131 { "pearl.impact", "pling.wav" },
132 { "crystal.collecting", "pong.wav" },
133 { "crystal.impact", "pling.wav" },
134 { "envelope.collecting", "pong.wav" },
135 { "invisible_sand.digging", "schlurf.wav" },
136 { "shield_normal.collecting", "pong.wav" },
137 { "shield_normal.active", UNDEFINED_FILENAME },
138 { "shield_deadly.collecting", "pong.wav" },
139 { "shield_deadly.active", UNDEFINED_FILENAME },
140 { "extra_time.collecting", "gong.wav" },
141 { "mole.moving", UNDEFINED_FILENAME },
142 { "mole.waiting", UNDEFINED_FILENAME },
143 { "mole.digging", "blurb.wav" },
144 { "[switchgate_switch].activating", UNDEFINED_FILENAME },
145 { "[switchgate].opening", "oeffnen.wav" },
146 { "[switchgate].closing", "oeffnen.wav" },
147 { "[switchgate].passing", "gate.wav" },
148 { "timegate_switch.activating", "deng.wav" },
149 { "timegate_switch.active", "miep.wav" },
150 { "timegate_switch.deactivating", UNDEFINED_FILENAME },
151 { "timegate.opening", "oeffnen.wav" },
152 { "[timegate].closing", "oeffnen.wav" },
153 { "[timegate].passing", "gate.wav" },
154 { "[conveyor_belt_switch].activating",UNDEFINED_FILENAME },
155 { "[conveyor_belt].active", UNDEFINED_FILENAME },
156 { "[conveyor_belt_switch].deactivating",UNDEFINED_FILENAME },
157 { "light_switch.activating", UNDEFINED_FILENAME },
158 { "light_switch.deactivating", UNDEFINED_FILENAME },
160 /* sounds for DX Boulderdash style elements and actions */
161 { "dx_supabomb.pushing", "pusch.wav" },
162 { "trap.digging", "schlurf.wav" },
163 { "trap.activating", UNDEFINED_FILENAME },
164 { "[tube].passing", UNDEFINED_FILENAME },
166 /* sounds for Rocks'n'Diamonds style elements and actions */
167 { "amoeba.turning_to_gem", "pling.wav" },
168 { "amoeba.turning_to_rock", "klopf.wav" },
169 { "speed_pill.collecting", "pong.wav" },
170 { "dynabomb_increase_number.collecting","pong.wav" },
171 { "dynabomb_increase_size.collecting","pong.wav" },
172 { "dynabomb_increase_power.collecting","pong.wav" },
173 { "[dynabomb].dropping", "deng.wav" },
174 { "[dynabomb].active", "zisch.wav" },
175 { "satellite.moving", UNDEFINED_FILENAME },
176 { "satellite.waiting", UNDEFINED_FILENAME },
177 { "satellite.pushing", "pusch.wav" },
178 { "lamp.activating", "deng.wav" },
179 { "lamp.deactivating", "deng.wav" },
180 { "time_orb_full.collecting", "gong.wav" },
181 { "time_orb_full.impact", "deng.wav" },
182 { "time_orb_empty.pushing", "pusch.wav" },
183 { "time_orb_empty.impact", "deng.wav" },
184 { "game_of_life.waiting", UNDEFINED_FILENAME },
185 { "game_of_life.growing", "amoebe.wav" },
186 { "biomaze.waiting", UNDEFINED_FILENAME },
187 { "biomaze.growing", "amoebe.wav" },
188 { "pacman.moving", UNDEFINED_FILENAME },
189 { "pacman.waiting", UNDEFINED_FILENAME },
190 { "pacman.digging", UNDEFINED_FILENAME },
191 { "dark_yamyam.moving", UNDEFINED_FILENAME },
192 { "dark_yamyam.waiting", "njam.wav" },
193 { "dark_yamyam.digging", UNDEFINED_FILENAME },
194 { "penguin.moving", UNDEFINED_FILENAME },
195 { "penguin.waiting", UNDEFINED_FILENAME },
196 { "pig.moving", UNDEFINED_FILENAME },
197 { "pig.waiting", UNDEFINED_FILENAME },
198 { "pig.digging", UNDEFINED_FILENAME },
199 { "dragon.moving", UNDEFINED_FILENAME },
200 { "dragon.waiting", UNDEFINED_FILENAME },
201 { "dragon.attacking", UNDEFINED_FILENAME },
203 /* sounds for generic elements and actions */
204 { "[player].dying", "autsch.wav" },
205 { "element.exploding", "roaaar.wav" },
206 { "sp_element.exploding", "booom.wav" },
208 /* sounds not associated to game elements (used for menu screens etc.) */
209 /* keyword to stop parser: "NO_MORE_ELEMENT_SOUNDS" <-- do not change! */
211 /* sounds for other game actions */
212 { "game.starting", UNDEFINED_FILENAME },
213 { "game.running_out_of_time", "gong.wav" },
214 { "game.leveltime_bonus", "sirr.wav" },
215 { "game.losing", "lachen.wav" },
216 { "game.winning", UNDEFINED_FILENAME },
217 { "game.sokoban_solving", "buing.wav" },
219 /* sounds for other non-game actions */
220 { "door.opening", "oeffnen.wav" },
221 { "door.closing", "oeffnen.wav" },
223 { "background.SCORES", "halloffame.wav" },
224 { "background.SCORES.mode_loop", "false" },
226 { "background.INFO", "rhythmloop.wav" },
227 { "background.INFO.mode_loop", "true" },
230 { "[not used]", "antigrav.wav" },
231 { "[not used]", "bong.wav" },
232 { "[not used]", "fuel.wav" },
233 { "[not used]", "holz.wav" },
234 { "[not used]", "hui.wav" },
235 { "[not used]", "kabumm.wav" },
236 { "[not used]", "kink.wav" },
237 { "[not used]", "kling.wav" },
238 { "[not used]", "krach.wav" },
239 { "[not used]", "laser.wav" },
240 { "[not used]", "quiek.wav" },
241 { "[not used]", "rumms.wav" },
242 { "[not used]", "schlopp.wav" },
243 { "[not used]", "schrff.wav" },
244 { "[not used]", "schwirr.wav" },
245 { "[not used]", "slurp.wav" },
246 { "[not used]", "sproing.wav" },
247 { "[not used]", "warnton.wav" },
248 { "[not used]", "whoosh.wav" },
249 { "[not used]", "boom.wav" },