Fixed bug #509
authorSam Lantinga <slouken@libsdl.org>
Sat, 03 Oct 2009 09:29:50 +0000
changeset 415494bc6858d1f
parent 414 44ee3a153066
child 416 67aaecd0610d
Fixed bug #509

Patrice Mandin 2007-10-27 04:52:36 PDT

in music.c, line 461:
native_midi_ok = !timidity_ok;

It means that you can't use native midi if timidity is ok and available, even
if you set the SDL_NATIVE_MUSIC environment variable (as written in
native_midi_gpl/README). It would be nice to be able to test either output
without having to recompile with one or the other disabled.
music.c
     1.1 --- a/music.c	Sat Oct 03 09:23:28 2009 +0000
     1.2 +++ b/music.c	Sat Oct 03 09:29:50 2009 +0000
     1.3 @@ -339,6 +339,9 @@
     1.4  #ifdef USE_NATIVE_MIDI
     1.5  #ifdef USE_TIMIDITY_MIDI
     1.6  	native_midi_ok = !timidity_ok;
     1.7 +	if ( !native_midi_ok ) {
     1.8 +		native_midi_ok = (getenv("SDL_NATIVE_MUSIC") != NULL);
     1.9 +	}
    1.10  	if ( native_midi_ok )
    1.11  #endif
    1.12  		native_midi_ok = native_midi_detect();