mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-18 18:01:13 +00:00
Space, the final frontier...
This commit is contained in:
parent
2342dfcd8f
commit
08de21404f
1 changed files with 35 additions and 34 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue