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