X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fmsdos.c;h=05948fd9f8ccca1e0373abe93201a92f44604768;hp=ebc8319542c1863c22541662323d99327590b71f;hb=50c422d96b6da2c0412b6bd3763e9d1a029a6014;hpb=0918c3eb2f6219a8cc72aa85bd9c4889788dd474 diff --git a/src/msdos.c b/src/msdos.c index ebc83195..05948fd9 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -52,9 +52,11 @@ static int global_colormap_entries_used = 0; boolean wait_for_vsync; +/* extern int playing_sounds; extern struct SoundControl playlist[MAX_SOUNDS_PLAYING]; extern struct SoundControl emptySoundControl; +*/ static BITMAP *Read_PCX_to_AllegroBitmap(char *); @@ -86,7 +88,7 @@ static void allegro_drivers() joystick_event = FALSE; reserve_voices(MAX_SOUNDS_PLAYING, 0); - if (install_sound(DIGI_AUTODETECT, MIDI_NONE, "ROCKS.SND") == -1) + if (install_sound(DIGI_AUTODETECT, MIDI_NONE, NULL) == -1) if (install_sound(DIGI_SB, MIDI_NONE, NULL) == -1) sound_status = SOUND_OFF; } @@ -762,57 +764,6 @@ KeySym XLookupKeysym(XKeyEvent *key_event, int index) return key_event->state; } -void sound_handler(struct SoundControl snd_ctrl) -{ - int i; - - if (snd_ctrl.fade_sound) - { - if (!playing_sounds) - return; - - for (i=0; i