Sdl_mixer without native_mide

Hey guys, I noticed that if you compile SDL_Mixer without native midi
support on OSX, compilation will fail.
A simple check on use_native_midi need to be added:

diff -r 83de6eb0d6d2 music.c
— a/music.c Wed Jan 04 19:29:33 2012 -0500
+++ b/music.c Fri Jan 06 02:02:05 2012 +0100
@@ -867,7 +867,7 @@
{
int retval = 0;

-#ifdef MACOSX
+#if defined(MACOSX) && defined(USE_NATIVE_MIDI)
/* This fixes a bug with native MIDI on Mac OS X, where you
can’t really stop and restart MIDI from the audio callback.
*/

Vittorio

Ah, thanks!On Thu, Jan 5, 2012 at 8:04 PM, Vittorio Giovara <vitto.giova at yahoo.it>wrote:

Hey guys, I noticed that if you compile SDL_Mixer without native midi
support on OSX, compilation will fail.
A simple check on use_native_midi need to be added:

diff -r 83de6eb0d6d2 music.c
— a/music.c Wed Jan 04 19:29:33 2012 -0500
+++ b/music.c Fri Jan 06 02:02:05 2012 +0100
@@ -867,7 +867,7 @@
{
int retval = 0;

-#ifdef MACOSX
+#if defined(MACOSX) && defined(USE_NATIVE_MIDI)
/* This fixes a bug with native MIDI on Mac OS X, where you
can’t really stop and restart MIDI from the audio callback.
*/

Vittorio


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org