don't play midi if -nosound

This commit is contained in:
Bradley Bell 2005-04-04 08:54:12 +00:00
parent bf9dc1657c
commit a31d0fd2b3
2 changed files with 8 additions and 2 deletions

View file

@ -1,6 +1,8 @@
2005-04-04 Bradley Bell <btb@icculus.org>
* arch/win32/mingw_init.c: remove redundnt joy_init()
* arch/win32/midi.c: don't play midi if -nosound
* arch/win32/mingw_init.c: remove redundant joy_init()
2005-04-01 Chris Taylor <chris@icculus.org>

View file

@ -1,9 +1,10 @@
/* $Id: midi.c,v 1.3 2005-03-18 03:42:43 btb Exp $ */
/* $Id: midi.c,v 1.4 2005-04-04 08:54:12 btb Exp $ */
// MIDI stuff follows.
#include <stdio.h>
#include "error.h"
#include "hmpfile.h"
#include "args.h"
hmp_file *hmp = NULL;
@ -47,6 +48,9 @@ void digi_play_midi_song(char *filename, char *melodic_bank, char *drum_bank, in
return;
#endif
if (FindArg("-nosound"))
return;
digi_stop_current_song();
if (filename == NULL)