Fixed bug #812
authorSam Lantinga <slouken@libsdl.org>
Sun, 27 Sep 2009 19:34:09 +0000
changeset 4022bfcf7edcb6f
parent 401 ee71829d80e7
child 403 fa529fbcc441
Fixed bug #812

Max Horn 2009-09-27 11:58:18 PDT

I got build failure reports from various people for SDL-mixer on OS X when
compiling in 64bit mode, both in 10.5 and 10.6. The reason: Deprecated
QuickTime APIs that have been removed for 64bit binaries, see below.

Proposed short-term workaround: Disable or just remove the crappy "native" MIDI
code. It's rather bad anyway (I should know, i wrote it ;).

Mid/long-term solution: Write new CoreAudio based code to replace it. That code
then would work on all OS X versions (well, at least on 10.4 upwards for sure),
be more accurate, sound better and take up less system resources. And be
simpler, did I mention that? Generating MIDI output with CoreAudio is pretty
easy, we do it in ScummVM, Exult, Pentagram, DOSBox, ...
configure.in
     1.1 --- a/configure.in	Sat Sep 26 22:23:16 2009 +0000
     1.2 +++ b/configure.in	Sun Sep 27 19:34:09 2009 +0000
     1.3 @@ -221,8 +221,10 @@
     1.4                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lwinmm"
     1.5                  ;;
     1.6              *-*-darwin*)
     1.7 -                use_music_native_midi=yes
     1.8 -                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuickTime -Wl,-framework,CoreServices"
     1.9 +                # This doesn't work on Mac OS X 10.5+
    1.10 +                # Max Horn (the original author) recommends disabling it for now.
    1.11 +                #use_music_native_midi=yes
    1.12 +                #EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuickTime -Wl,-framework,CoreServices"
    1.13                  ;;
    1.14          esac
    1.15          if test x$use_music_native_midi = xyes; then