implement -nomusic for linux hmiplay (d1x r1.8)
This commit is contained in:
parent
7d3ab4a139
commit
a8dfe48d9f
|
@ -1,5 +1,8 @@
|
|||
2004-05-19 Bradley Bell <btb@icculus.org>
|
||||
|
||||
* arch/linux/hmiplay.c: implement -nomusic for linux hmiplay (d1x
|
||||
r1.8)
|
||||
|
||||
* arch/linux/hmiplay.c: correct linux hmiplay handling of midi 0
|
||||
volume song stop/starting (d1x r1.7)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: hmiplay.c,v 1.7 2004-05-19 19:04:41 btb Exp $ */
|
||||
/* $Id: hmiplay.c,v 1.8 2004-05-19 19:14:52 btb Exp $ */
|
||||
/*
|
||||
* HMI midi playing routines by Jani Frilander
|
||||
*
|
||||
|
@ -812,6 +812,9 @@ void play_hmi (void * arg)
|
|||
|
||||
void digi_play_midi_song(char *filename, char *melodic_bank, char *drum_bank, int loop)
|
||||
{
|
||||
if (FindArg("-nomusic"))
|
||||
return;
|
||||
|
||||
if (!filename)
|
||||
send_ipc("p");
|
||||
else
|
||||
|
@ -823,8 +826,10 @@ void digi_play_midi_song(char *filename, char *melodic_bank, char *drum_bank, in
|
|||
}
|
||||
|
||||
void digi_set_midi_volume( int mvolume ) {
|
||||
char buf[128];
|
||||
|
||||
sprintf(buf,"v%i",mvolume);
|
||||
send_ipc(buf);
|
||||
char buf[128];
|
||||
if(FindArg("-nomusic"))
|
||||
return;
|
||||
|
||||
sprintf(buf,"v%i",mvolume);
|
||||
send_ipc(buf);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue