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_empty_space.digging", "empty.wav" },
33 { "bd_sand.digging", "schlurf.wav" },
34 { "bd_diamond.collecting", "pong.wav" },
35 { "bd_diamond.impact", "pling.wav" },
36 { "bd_rock.pushing", "pusch.wav" },
37 { "bd_rock.impact", "klopf.wav" },
38 { "bd_magic_wall.activating", "quirk.wav" },
39 { "bd_magic_wall.active", "miep.wav" },
40 { "bd_magic_wall.changing", "quirk.wav" },
41 { "bd_amoeba.waiting", SND_FILE_UNDEFINED },
42 { "bd_amoeba.creating", "amoebe.wav" },
43 { "bd_amoeba.turning_to_gem", "pling.wav" },
44 { "bd_amoeba.turning_to_rock", "klopf.wav" },
45 { "bd_butterfly.moving", "klapper.wav" },
46 { "bd_butterfly.waiting", "klapper.wav" },
47 { "bd_firefly.moving", "roehr.wav" },
48 { "bd_firefly.waiting", "roehr.wav" },
49 { "bd_exit.passing", "buing.wav" },
51 /* sounds for Supaplex style elements and actions */
52 { "sp_empty_space.digging", "empty.wav" },
53 { "sp_base.digging", "base.wav" },
54 { "sp_buggy_base.digging", "base.wav" },
55 { "sp_buggy_base.active", "bug.wav" },
56 { "sp_infotron.collecting", "infotron.wav" },
57 { "sp_infotron.impact", "pling.wav" },
58 { "sp_zonk.pushing", "zonkpush.wav" },
59 { "sp_zonk.impact", "zonkdown.wav" },
60 { "sp_disk_red.collecting", "infotron.wav" },
61 { "sp_disk_orange.pushing", "zonkpush.wav" },
62 { "sp_disk_yellow.pushing", "pusch.wav" },
63 { "sp_port.passing", "gate.wav" },
64 { "sp_exit.passing", "exit.wav" },
65 { "sp_exit.opening", SND_FILE_UNDEFINED },
66 { "sp_element.exploding", "booom.wav" },
67 { "sp_sniksnak.moving", SND_FILE_UNDEFINED },
68 { "sp_sniksnak.waiting", SND_FILE_UNDEFINED },
69 { "sp_electron.moving", SND_FILE_UNDEFINED },
70 { "sp_electron.waiting", SND_FILE_UNDEFINED },
71 { "sp_terminal.activating", SND_FILE_UNDEFINED },
72 { "sp_terminal.active", SND_FILE_UNDEFINED },
74 /* sounds for Sokoban style elements and actions */
75 { "sokoban_object.pushing", "pusch.wav" },
76 { "sokoban_field.filling", "deng.wav" },
77 { "sokoban_field.emptying", SND_FILE_UNDEFINED },
78 { "sokoban_game.solving", "buing.wav" },
80 /* sounds for Emerald Mine style elements and actions */
81 { "empty_space.digging", "empty.wav" },
82 { "sand.digging", "schlurf.wav" },
83 { "emerald.collecting", "pong.wav" },
84 { "emerald.impact", "pling.wav" },
85 { "diamond.collecting", "pong.wav" },
86 { "diamond.impact", "pling.wav" },
87 { "diamond.breaking", "quirk.wav" },
88 { "rock.pushing", "pusch.wav" },
89 { "rock.impact", "klopf.wav" },
90 { "bomb.pushing", "pusch.wav" },
91 { "nut.pushing", "knurk.wav" },
92 { "nut.cracking", "knack.wav" },
93 { "nut.impact", "klumpf.wav" },
94 { "dynamite.collecting", "pong.wav" },
95 { "dynamite.dropping", "deng.wav" },
96 { "dynamite.active", "zisch.wav" },
97 { "key.collecting", "pong.wav" },
98 { "gate.passing", "gate.wav" },
99 { "bug.moving", "klapper.wav" },
100 { "bug.waiting", "klapper.wav" },
101 { "spaceship.moving", "roehr.wav" },
102 { "spaceship.waiting", "roehr.wav" },
103 { "yamyam.moving", SND_FILE_UNDEFINED },
104 { "yamyam.waiting", "njam.wav" },
105 { "yamyam.eating", SND_FILE_UNDEFINED },
106 { "robot.moving", "schlurf.wav" },
107 { "robot.moving.mode_loop", "false" },
108 { "robot.waiting", SND_FILE_UNDEFINED },
109 { "robot_wheel.activating", "deng.wav" },
110 { "robot_wheel.active", "miep.wav" },
111 { "magic_wall.activating", "quirk.wav" },
112 { "magic_wall.active", "miep.wav" },
113 { "magic_wall.changing", "quirk.wav" },
114 { "amoeba.waiting", SND_FILE_UNDEFINED },
115 { "amoeba.creating", "amoebe.wav" },
116 { "amoeba_drop.creating", SND_FILE_UNDEFINED },
117 { "acid.splashing", "blurb.wav" },
118 { "quicksand.filling", SND_FILE_UNDEFINED },
119 { "quicksand.slipping", SND_FILE_UNDEFINED },
120 { "quicksand.emptying", SND_FILE_UNDEFINED },
121 { "exit.opening", "oeffnen.wav" },
122 { "exit.passing", "buing.wav" },
124 /* sounds for Emerald Mine Club style elements and actions */
125 { "balloon.moving", SND_FILE_UNDEFINED },
126 { "balloon.waiting", SND_FILE_UNDEFINED },
127 { "balloon.pushing", "schlurf.wav" },
128 { "balloon_switch.activating", SND_FILE_UNDEFINED },
129 { "spring.moving", SND_FILE_UNDEFINED },
130 { "spring.pushing", "pusch.wav" },
131 { "spring.impact", "klopf.wav" },
132 { "wall.growing", SND_FILE_UNDEFINED },
134 /* sounds for Diamond Caves style elements and actions */
135 { "pearl.collecting", "pong.wav" },
136 { "pearl.breaking", "knack.wav" },
137 { "pearl.impact", "pling.wav" },
138 { "crystal.collecting", "pong.wav" },
139 { "crystal.impact", "pling.wav" },
140 { "envelope.collecting", "pong.wav" },
141 { "sand_invisible.digging", "schlurf.wav" },
142 { "shield_normal.collecting", "pong.wav" },
143 { "shield_normal.active", SND_FILE_UNDEFINED },
144 { "shield_deadly.collecting", "pong.wav" },
145 { "shield_deadly.active", SND_FILE_UNDEFINED },
146 { "extra_time.collecting", "gong.wav" },
147 { "mole.moving", SND_FILE_UNDEFINED },
148 { "mole.waiting", SND_FILE_UNDEFINED },
149 { "mole.eating", "blurb.wav" },
150 { "switchgate_switch.activating", SND_FILE_UNDEFINED },
151 { "switchgate.opening", "oeffnen.wav" },
152 { "switchgate.closing", "oeffnen.wav" },
153 { "switchgate.passing", "gate.wav" },
154 { "timegate_switch.activating", "deng.wav" },
155 { "timegate_switch.active", "miep.wav" },
156 { "timegate.opening", "oeffnen.wav" },
157 { "timegate.closing", "oeffnen.wav" },
158 { "timegate.passing", "gate.wav" },
159 { "conveyor_belt_switch.activating", SND_FILE_UNDEFINED },
160 { "conveyor_belt_switch.deactivating",SND_FILE_UNDEFINED },
161 { "conveyor_belt.active", SND_FILE_UNDEFINED },
162 { "light_switch.activating", SND_FILE_UNDEFINED },
163 { "light_switch.deactivating", SND_FILE_UNDEFINED },
165 /* sounds for DX Boulderdash style elements and actions */
166 { "dx_bomb.pushing", "pusch.wav" },
167 { "trap_inactive.digging", "schlurf.wav" },
168 { "trap.activating", SND_FILE_UNDEFINED },
169 { "tube.passing", SND_FILE_UNDEFINED },
171 /* sounds for Rocks'n'Diamonds style elements and actions */
172 { "amoeba.turning_to_gem", "pling.wav" },
173 { "amoeba.turning_to_rock", "klopf.wav" },
174 { "speed_pill.collecting", "pong.wav" },
175 { "dynabomb_nr.collecting", "pong.wav" },
176 { "dynabomb_sz.collecting", "pong.wav" },
177 { "dynabomb_xl.collecting", "pong.wav" },
178 { "dynabomb.dropping", "deng.wav" },
179 { "dynabomb.active", "zisch.wav" },
180 { "satellite.moving", SND_FILE_UNDEFINED },
181 { "satellite.waiting", SND_FILE_UNDEFINED },
182 { "satellite.pushing", "pusch.wav" },
183 { "lamp.activating", "deng.wav" },
184 { "lamp.deactivating", "deng.wav" },
185 { "time_orb_full.collecting", "gong.wav" },
186 { "time_orb_full.impact", "deng.wav" },
187 { "time_orb_empty.pushing", "pusch.wav" },
188 { "time_orb_empty.impact", "deng.wav" },
189 { "gameoflife.waiting", SND_FILE_UNDEFINED },
190 { "gameoflife.creating", "amoebe.wav" },
191 { "biomaze.waiting", SND_FILE_UNDEFINED },
192 { "biomaze.creating", "amoebe.wav" },
193 { "pacman.moving", SND_FILE_UNDEFINED },
194 { "pacman.waiting", SND_FILE_UNDEFINED },
195 { "pacman.eating", SND_FILE_UNDEFINED },
196 { "dark_yamyam.moving", SND_FILE_UNDEFINED },
197 { "dark_yamyam.waiting", "njam.wav" },
198 { "dark_yamyam.eating", SND_FILE_UNDEFINED },
199 { "penguin.moving", SND_FILE_UNDEFINED },
200 { "penguin.waiting", SND_FILE_UNDEFINED },
201 { "penguin.passing_exit", "buing.wav" },
202 { "pig.moving", SND_FILE_UNDEFINED },
203 { "pig.waiting", SND_FILE_UNDEFINED },
204 { "pig.eating", SND_FILE_UNDEFINED },
205 { "dragon.moving", SND_FILE_UNDEFINED },
206 { "dragon.waiting", SND_FILE_UNDEFINED },
207 { "dragon.attacking", SND_FILE_UNDEFINED },
209 /* sounds for generic elements and actions */
210 { "player.dying", "autsch.wav" },
211 { "element.exploding", "roaaar.wav" },
213 /* sounds for other game actions */
214 { "game.starting", SND_FILE_UNDEFINED },
215 { "game.running_out_of_time", "gong.wav" },
216 { "game.leveltime_bonus", "sirr.wav" },
217 { "game.losing", "lachen.wav" },
218 { "game.winning", SND_FILE_UNDEFINED },
220 /* sounds for other non-game actions */
221 { "menu.door_opening", "oeffnen.wav" },
222 { "menu.door_closing", "oeffnen.wav" },
224 { "menu.hall_of_fame", "halloffame.wav" },
225 { "menu.hall_of_fame.mode_loop", "false" },
227 { "menu.info_screen", "rhythmloop.wav" },
228 { "menu.info_screen.mode_loop", "true" },
231 { "[not used]", "antigrav.wav" },
232 { "[not used]", "bong.wav" },
233 { "[not used]", "fuel.wav" },
234 { "[not used]", "holz.wav" },
235 { "[not used]", "hui.wav" },
236 { "[not used]", "kabumm.wav" },
237 { "[not used]", "kink.wav" },
238 { "[not used]", "kling.wav" },
239 { "[not used]", "krach.wav" },
240 { "[not used]", "laser.wav" },
241 { "[not used]", "quiek.wav" },
242 { "[not used]", "rumms.wav" },
243 { "[not used]", "schlopp.wav" },
244 { "[not used]", "schrff.wav" },
245 { "[not used]", "schwirr.wav" },
246 { "[not used]", "slurp.wav" },
247 { "[not used]", "sproing.wav" },
248 { "[not used]", "warnton.wav" },
249 { "[not used]", "whoosh.wav" },
250 { "[not used]", "boom.wav" },