Finally got Fmod (3.74, I think – the latest 3.xx for Mac) to link correctly in XCode. Using latest XCode (2.1, I think), and Mac OS X 10.4.
If I try to load my OXM (I only tested with 1), I get a crash. I have no source code, but I do get a stack dump that looks potentially useful
0 0x000597a0 in FSOUND_Sample_AdjustLoopPoints at PL_GraphicsManagerBlit.cpp:1517
1 0x0007361c in FSOUND_Software_Sample_Unlock at system_string.c:224
2 0x00058f5c in FSOUND_Sample_UploadEx at PL_GraphicsManagerBlit.cpp:1517
3 0x00059088 in FSOUND_Sample_Upload at PL_GraphicsManagerBlit.cpp:1517
4 0x00063968 in FMUSIC_LoadXM at music_formatfsb.c:546
5 0x000502fc in FMUSIC_Load at PL_GraphicsManagerBlit.cpp:1517
6 0x00050594 in FMUSIC_LoadInternal at PL_GraphicsManagerBlit.cpp:1517
7 0x00050638 in FMUSIC_LoadSong at PL_GraphicsManagerBlit.cpp:1517
If I don’t load that song, and only use my FSOUND calls to play back WAV files, nothing crashes, and the return values from the calls look right, but it doesn’t make any sound. Yes, I verified that the speakers are on and I can get the usual Mac OS beeps and other sounds.
I’ve got the ZeroLink thing set to No, and am linking in the Carbon framework.
Note – this is a port of a Windows game, which works fine with FMOD.
- psteinx asked 11 years ago
OK, I got the samples up and running. They worked, and with their help, I located the cause of problem #2 – I had this call before my init function:
So I commented that out, and normal sounds played fine.
However, problem #1 persists.
Looking into it further, I found that if I loaded and played back the uncompressed version of that song (i.e. a straight XM), it plays fine. I also tried playing a different OXM that I’m not sure if I got from this site or somewhere else, and the other OXM plays fine too.
So the OXM that I made from my XM is the only one that crashes. It crashes when I call FMUSIC_LoadSong, though from the stack dump above, it appears to be deeper within FMOD than that. To make that OXM, I used OggMod, from this site, with all default settings. My OXM plays fine on my Windows machine – only crashes the Mac.
I’ve placed the base, uncompressed XM online, in case that’s useful, here
and the OXM that works fine for me here
Please login first to submit.