0
0

Good evening everybody !

I don’t undersand how to use FMOD on Mac OSX. I have a project in whitch i included lifmod.a and the header files.
Have I to do another thing ? I get these errors when i try to compile :[code:28wi6x6r]/usr/bin/ld: Undefined symbols:
_NewSICompletionUPP
_SPBCloseDevice
_SPBGetDeviceInfo
_SPBOpenDevice
_SPBRecord
_SPBSetDeviceInfo
_SPBStopRecording
_SndDisposeChannel
_SndDoImmediate
_SndNewChannel
_SndSoundManagerVersion
_GetCompressionInfo
_NMInstall
_NMRemove
_NewNMUPP
_NewSndCallBackUPP
_SndDoCommand
[/code:28wi6x6r]
How to fix them ?!

I use OSX 10.4.8, XCode 2.0 with GCC 4.

Thank you very much ! :)

  • You must to post comments
0
0

Hi,

It just looks like you haven’t linked to the Carbon framework. (You will notice the examples link to it)

  • You must to post comments
0
0

Thank you very much, it work !!! 😉
Now, I’ve another problem, FMOD doesn’t want to load a midi file, he says [b:3redpyqg]"Unknown file format"[/b:3redpyqg], why ?
My code :[code:3redpyqg]void Charger_Midis(void)
{
int i;
char *nom_Midis[M_LAST] = {
"midis/menu.mid",
"midis/quit.mid",
"midis/choiceniveau.mid",
"midis/victoire.mid",
"midis/perdu.mid",
"midis/gagne.mid",
"midis/film.mid"
};

for (i = 0; i < M_LAST; i++)
{
    Midis[i] = NULL;
    Midis[i] = FMUSIC_LoadSong(nom_Midis[i]);

    if (Midis[i] == NULL)
    {
        int error = FSOUND_GetError();
        fprintf(stderr, "Error loading %s. (%s)\n", nom_Midis[i], FMOD_ErrorString(error));
        exit(EXIT_FAILURE);
    } 

    FMUSIC_SetMasterVolume(Midis[i], 150);
    FMUSIC_SetLooping(Midis[i], 1);     
} 

} [/code:3redpyqg]

Console say :[code:3redpyqg]Error loading midis/menu.mid. (Unknown file format)[/code:3redpyqg]

Why ?

  • You must to post comments
0
0

midi is not supported on osx, only windows, with fmod 3.

For midi support cross platform, you should use FMOD Ex.

  • You must to post comments
0
0

Oh .. Why not ?

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.