X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fsound.c;h=5aedabb35abb1cbf42faaa23b67b32e6502e6883;hb=d70849f89266d43bba8dba20d6dc3069d065f440;hp=8fa4565347e2b77792f3fe586057b47d4cce6332;hpb=86e1890b2d87dd7710b320e2b306c7291d41e2a5;p=rocksndiamonds.git diff --git a/src/game_em/sound.c b/src/game_em/sound.c index 8fa45653..5aedabb3 100644 --- a/src/game_em/sound.c +++ b/src/game_em/sound.c @@ -20,14 +20,12 @@ #include #endif -#include "global.h" -#include "sample.h" - static char audioname[] = "/dev/audio"; static const int sound_priority[SAMPLE_MAX] = { - SAMPLE_exit, + SAMPLE_exit_open, + SAMPLE_exit_leave, SAMPLE_die, SAMPLE_time, SAMPLE_boom, @@ -40,7 +38,8 @@ static const int sound_priority[SAMPLE_MAX] = SAMPLE_door, SAMPLE_dirt, SAMPLE_blank, - SAMPLE_android, + SAMPLE_android_clone, + SAMPLE_android_move, SAMPLE_ball, SAMPLE_grow, SAMPLE_squash, @@ -57,6 +56,7 @@ static const int sound_priority[SAMPLE_MAX] = SAMPLE_bug, SAMPLE_tank, SAMPLE_eater, + SAMPLE_eater_eat, SAMPLE_alien, SAMPLE_acid }; @@ -94,7 +94,9 @@ int sound_thread(void) { /* pick sounds to play, if any */ - if (sound_play[SAMPLE_exit] || sound_play[SAMPLE_die]) + if (sound_play[SAMPLE_exit_open] || + sound_play[SAMPLE_exit_leave] || + sound_play[SAMPLE_die]) sound_play[SAMPLE_boom] = 0; /* no explosions if player goes home */ mix_count = 0;