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