rnd-20030305-1-src
[rocksndiamonds.git] / src / conf_snd.c
1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back!               *
3 *----------------------------------------------------------*
4 * (c) 1995-2002 Artsoft Entertainment                      *
5 *               Holger Schemel                             *
6 *               Detmolder Strasse 189                      *
7 *               33604 Bielefeld                            *
8 *               Germany                                    *
9 *               e-mail: info@artsoft.org                   *
10 *----------------------------------------------------------*
11 * conf_snd.c                                               *
12 ***********************************************************/
13
14 #include "libgame/libgame.h"
15 #include "main.h"
16
17
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. */
21
22 struct ConfigInfo sound_config_suffix[] =
23 {
24   { ".mode_loop",                       ARG_UNDEFINED,  TYPE_BOOLEAN },
25
26   { NULL,                               NULL,           0            }
27 };
28
29 struct ConfigInfo sound_config[] =
30 {
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"             },
47
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      },
68
69   /* sounds for Sokoban style elements and actions */
70   { "[sokoban].pushing",                "pusch.wav"             },
71   { "[sokoban].filling",                "deng.wav"              },
72   { "[sokoban].emptying",               UNDEFINED_FILENAME      },
73
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
117   /* sounds for Emerald Mine Club style elements and actions */
118   { "balloon.moving",                   UNDEFINED_FILENAME      },
119   { "balloon.waiting",                  UNDEFINED_FILENAME      },
120   { "balloon.pushing",                  "schlurf.wav"           },
121   { "[balloon_switch].activating",      UNDEFINED_FILENAME      },
122   { "spring.moving",                    UNDEFINED_FILENAME      },
123   { "spring.pushing",                   "pusch.wav"             },
124   { "spring.impact",                    "klopf.wav"             },
125   { "[wall].growing",                   UNDEFINED_FILENAME      },
126
127   /* sounds for Diamond Caves style elements and actions */
128   { "pearl.collecting",                 "pong.wav"              },
129   { "pearl.breaking",                   "knack.wav"             },
130   { "pearl.impact",                     "pling.wav"             },
131   { "crystal.collecting",               "pong.wav"              },
132   { "crystal.impact",                   "pling.wav"             },
133   { "envelope.collecting",              "pong.wav"              },
134   { "invisible_sand.digging",           "schlurf.wav"           },
135   { "shield_normal.collecting",         "pong.wav"              },
136   { "shield_normal.active",             UNDEFINED_FILENAME      },
137   { "shield_deadly.collecting",         "pong.wav"              },
138   { "shield_deadly.active",             UNDEFINED_FILENAME      },
139   { "extra_time.collecting",            "gong.wav"              },
140   { "mole.moving",                      UNDEFINED_FILENAME      },
141   { "mole.waiting",                     UNDEFINED_FILENAME      },
142   { "mole.digging",                     "blurb.wav"             },
143   { "[switchgate_switch].activating",   UNDEFINED_FILENAME      },
144   { "[switchgate].opening",             "oeffnen.wav"           },
145   { "[switchgate].closing",             "oeffnen.wav"           },
146   { "[switchgate].passing",             "gate.wav"              },
147   { "timegate_switch.activating",       "deng.wav"              },
148   { "timegate_switch.active",           "miep.wav"              },
149   { "timegate_switch.deactivating",     UNDEFINED_FILENAME      },
150   { "timegate.opening",                 "oeffnen.wav"           },
151   { "[timegate].closing",               "oeffnen.wav"           },
152   { "[timegate].passing",               "gate.wav"              },
153   { "[conveyor_belt_switch].activating",UNDEFINED_FILENAME      },
154   { "[conveyor_belt].active",           UNDEFINED_FILENAME      },
155   { "[conveyor_belt_switch].deactivating",UNDEFINED_FILENAME    },
156   { "light_switch.activating",          UNDEFINED_FILENAME      },
157   { "light_switch.deactivating",        UNDEFINED_FILENAME      },
158
159   /* sounds for DX Boulderdash style elements and actions */
160   { "dx_supabomb.pushing",              "pusch.wav"             },
161   { "trap.digging",                     "schlurf.wav"           },
162   { "trap.activating",                  UNDEFINED_FILENAME      },
163   { "[tube].passing",                   UNDEFINED_FILENAME      },
164
165   /* sounds for Rocks'n'Diamonds style elements and actions */
166   { "amoeba.turning_to_gem",            "pling.wav"             },
167   { "amoeba.turning_to_rock",           "klopf.wav"             },
168   { "speed_pill.collecting",            "pong.wav"              },
169   { "dynabomb_increase_number.collecting","pong.wav"            },
170   { "dynabomb_increase_size.collecting","pong.wav"              },
171   { "dynabomb_increase_power.collecting","pong.wav"             },
172   { "[dynabomb].dropping",              "deng.wav"              },
173   { "[dynabomb].active",                "zisch.wav"             },
174   { "satellite.moving",                 UNDEFINED_FILENAME      },
175   { "satellite.waiting",                UNDEFINED_FILENAME      },
176   { "satellite.pushing",                "pusch.wav"             },
177   { "lamp.activating",                  "deng.wav"              },
178   { "lamp.deactivating",                "deng.wav"              },
179   { "time_orb_full.collecting",         "gong.wav"              },
180   { "time_orb_full.impact",             "deng.wav"              },
181   { "time_orb_empty.pushing",           "pusch.wav"             },
182   { "time_orb_empty.impact",            "deng.wav"              },
183   { "game_of_life.waiting",             UNDEFINED_FILENAME      },
184   { "game_of_life.growing",             "amoebe.wav"            },
185   { "biomaze.waiting",                  UNDEFINED_FILENAME      },
186   { "biomaze.growing",                  "amoebe.wav"            },
187   { "pacman.moving",                    UNDEFINED_FILENAME      },
188   { "pacman.waiting",                   UNDEFINED_FILENAME      },
189   { "pacman.digging",                   UNDEFINED_FILENAME      },
190   { "dark_yamyam.moving",               UNDEFINED_FILENAME      },
191   { "dark_yamyam.waiting",              "njam.wav"              },
192   { "dark_yamyam.digging",              UNDEFINED_FILENAME      },
193   { "penguin.moving",                   UNDEFINED_FILENAME      },
194   { "penguin.waiting",                  UNDEFINED_FILENAME      },
195   { "pig.moving",                       UNDEFINED_FILENAME      },
196   { "pig.waiting",                      UNDEFINED_FILENAME      },
197   { "pig.digging",                      UNDEFINED_FILENAME      },
198   { "dragon.moving",                    UNDEFINED_FILENAME      },
199   { "dragon.waiting",                   UNDEFINED_FILENAME      },
200   { "dragon.attacking",                 UNDEFINED_FILENAME      },
201
202   /* sounds for generic elements and actions */
203   { "[player].dying",                   "autsch.wav"            },
204   { "element.exploding",                "roaaar.wav"            },
205   { "sp_element.exploding",             "booom.wav"             },
206
207   /* sounds not associated to game elements (used for menu screens etc.) */
208   /* keyword to stop parser: "NO_MORE_ELEMENT_SOUNDS" <-- do not change! */
209
210   /* sounds for other game actions */
211   { "game.starting",                    UNDEFINED_FILENAME      },
212   { "game.running_out_of_time",         "gong.wav"              },
213   { "game.leveltime_bonus",             "sirr.wav"              },
214   { "game.losing",                      "lachen.wav"            },
215   { "game.winning",                     UNDEFINED_FILENAME      },
216   { "game.sokoban_solving",             "buing.wav"             },
217
218   /* sounds for other non-game actions */
219   { "menu.door_opening",                "oeffnen.wav"           },
220   { "menu.door_closing",                "oeffnen.wav"           },
221
222   { "menu.hall_of_fame",                "halloffame.wav"        },
223   { "menu.hall_of_fame.mode_loop",      "false"                 },
224
225   { "menu.info_screen",                 "rhythmloop.wav"        },
226   { "menu.info_screen.mode_loop",       "true"                  },
227
228 #if 0
229   { "[not used]",                       "antigrav.wav"          },
230   { "[not used]",                       "bong.wav"              },
231   { "[not used]",                       "fuel.wav"              },
232   { "[not used]",                       "holz.wav"              },
233   { "[not used]",                       "hui.wav"               },
234   { "[not used]",                       "kabumm.wav"            },
235   { "[not used]",                       "kink.wav"              },
236   { "[not used]",                       "kling.wav"             },
237   { "[not used]",                       "krach.wav"             },
238   { "[not used]",                       "laser.wav"             },
239   { "[not used]",                       "quiek.wav"             },
240   { "[not used]",                       "rumms.wav"             },
241   { "[not used]",                       "schlopp.wav"           },
242   { "[not used]",                       "schrff.wav"            },
243   { "[not used]",                       "schwirr.wav"           },
244   { "[not used]",                       "slurp.wav"             },
245   { "[not used]",                       "sproing.wav"           },
246   { "[not used]",                       "warnton.wav"           },
247   { "[not used]",                       "whoosh.wav"            },
248   { "[not used]",                       "boom.wav"              },
249 #endif
250
251   { NULL,                               NULL                    }
252 };