Skip to content

Commit

Permalink
Fixed bug #509
Browse files Browse the repository at this point in the history
 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.
  • Loading branch information
slouken committed Oct 3, 2009
1 parent 9a18bb7 commit 315a17d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions music.c
Expand Up @@ -339,6 +339,9 @@ int open_music(SDL_AudioSpec *mixer)
#ifdef USE_NATIVE_MIDI
#ifdef USE_TIMIDITY_MIDI
native_midi_ok = !timidity_ok;
if ( !native_midi_ok ) {
native_midi_ok = (getenv("SDL_NATIVE_MUSIC") != NULL);
}
if ( native_midi_ok )
#endif
native_midi_ok = native_midi_detect();
Expand Down

0 comments on commit 315a17d

Please sign in to comment.