Space, the final frontier...

This commit is contained in:
Ragnvald Maartmann-Moe IV 2004-03-01 11:51:34 +00:00
parent 2342dfcd8f
commit 08de21404f

View file

@ -56,8 +56,11 @@ static cvar_t *wildmidi_config;
static int
midi_init ( void ) {
wildmidi_volume = Cvar_Get ("wildmidi_volume", "100", CVAR_ARCHIVE, NULL, "Set the Master Volume");
wildmidi_config = Cvar_Get ("wildmidi_config", "/etc/timidity.cfg", CVAR_ROM, NULL, "path/filename of timidity.cfg");
wildmidi_volume = Cvar_Get ("wildmidi_volume", "100", CVAR_ARCHIVE, NULL,
"Set the Master Volume");
wildmidi_config = Cvar_Get ("wildmidi_config", "/etc/timidity.cfg",
CVAR_ROM, NULL,
"path/filename of timidity.cfg");
if (WildMidi_Init (wildmidi_config->string, shm->speed, 0) == -1)
return 1;
@ -187,7 +190,6 @@ midi_stream_open (sfx_t *_sfx)
void
SND_LoadMidi (QFile *file, sfx_t *sfx, char *realname)
{
wavinfo_t info;
sfxstream_t *stream = calloc (1, sizeof (sfxstream_t));
midi *handle;
@ -208,7 +210,6 @@ SND_LoadMidi (QFile *file, sfx_t *sfx, char *realname)
// WildMidi takes ownership, so be damned if you touch it
handle = WildMidi_OpenBuffer (local_buffer, local_buffer_size);
if (handle == NULL)
return;