X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fmain.c;h=335cee2329c7b391fb16aee053a089fd2da17502;hb=884db54d739f5838243315f390d28634cb99a7d9;hp=8533d336d74f9b5479151118d3a12a00f2668bc7;hpb=fe158e864d3fa4b0221e9c88d8dfff0157051396;p=rocksndiamonds.git diff --git a/src/main.c b/src/main.c index 8533d336..335cee23 100644 --- a/src/main.c +++ b/src/main.c @@ -136,20 +136,18 @@ char *sound_name[NUM_SOUNDS] = "gate.wav" }; -/* background music */ -int background_loop[] = +/* sound effects: setup file identifiers and corresponding default filenames */ +struct { -#if 0 - SND_ALCHEMY, - SND_CHASE, - SND_NETWORK, - SND_CZARDASZ, - SND_TYGER, - SND_VOYAGER, - SND_TWILIGHT -#endif + char *identifier; + char *default_filename; +} +sound_effect[NUM_SOUND_EFFECTS] = +{ + { "collecting_infotron", "infotron.wav" }, + { "falling_zonk", "zonkdown.wav" }, + { "pushing_zonk", "zonkpush.wav" } }; -int num_bg_loops = sizeof(background_loop)/sizeof(int); char *element_info[] = {