Problem with SDL_mixer on Mac OSX

Hello !

On Windows and Linux SDL_mixer works without problems.
When i compile it on Mac OSX SDL_mixers internal MikMod
version produces no sound output.

MIDI, WAVE and others formats work, also libmikmod works.

Is this a known problem ?

iBook G4 1 GHz, Latest OSX Tiger with all Updates.
XCode 2.2

CU

On Windows and Linux SDL_mixer works without problems.
When i compile it on Mac OSX SDL_mixers internal MikMod
version produces no sound output.

MIDI, WAVE and others formats work, also libmikmod works.

Is this a known problem ?

I believe it’s been posted before, but I haven’t had a chance to
research it at all.

It’s on my TODO list now, though.

–ryan.

Torsten Giebl wrote:

When i compile it on Mac OSX SDL_mixers internal MikMod version
produces no sound output.
MIDI, WAVE and others formats work, also libmikmod works.

We came across this in our game port. Never had enough drive to get to the
bottom of it, but if you remove the DMODE_HQMIXER flag from MikMod’s md_mode
flags var, the internal MikMod will work fine on OSX (but produce lesser
quality, of course).

-Alex

Ryan C. Gordon wrote:

When i compile it on Mac OSX SDL_mixers internal MikMod version
produces no sound output.

I believe it’s been posted before, but I haven’t had a chance to
research it at all.

Ryan, I think it has something to do with some interesting code in virtch2.c
:wink:

#if defined(macintosh) || defined(APPLE)
#define NO_64BIT_MIXER
#endif
[… snip …]

#ifdef NO_64BIT_MIXER
/* Uh oh, the 64-bit mixers don’t compile…
*/;
#else

The latter essentially translates to “produce no output if the song is long
enough”, where ‘long enough’ is a few milliseconds at 22.5KHz.
We should see how later versions of MikMod handled 64bit ints on Apple
compilers.

-Alex.