PDA

View Full Version : Problem with SDL_mixer and Mac OS X



Stoney
10-07-2009, 11:36 PM
I've got a weird problem recently using SDL_mixer and Mac OS X (Leopard 10.5.7). Whenever Mix_OpenAudio() is being called, I get an "EInvalid Point: Invalid floating point operation". I had this problem a few weeks back, it went away when changed to frequency to:


Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 4096);

Now I've been trying out different frequencies, formats, channels etc. for the last day and a half, but I'm still getting invalid floating point operations and it's getting frustrating now. (Especially since it's for a semi-commercial project with a strict deadline.)
There is no difference if I use the framework method or compile it against Fink. Whats even more weird than that, it doesn't work with C++ either. Is the SDL_mixer framework corrupted?

Edit: Just recompiled the SDL_mixer framework from source and it's still not working. :(

chronozphere
11-07-2009, 01:39 PM
Do you have SDL_Mixer sample code somewhere? If that code works you can compare it to your source and find the differences. Maybe ask on gamedev.net? There must be more people using SDL_Mixer on Mac OSX, no doubt. :)

Stoney
06-08-2009, 04:51 PM
It seems that issue was a problem of Mac OS X 10.5.7.
Just upgraded to 10.5.8 and everything is working fine now. :)