I’m currently evaluating fmod for use in an iPhone game.
I’ve found a limitation regarding the header output of the FMOD Designer tool. Please let me know if there is a workaround for this at all..
The pattern I see as being most logical in code is to call some function to which you pass the generated EVENTID of the sound you wish to play. This means including the generated header file where ever I wish to play sounds.
As the .h file just declares everything as const ints, this result in a duplicate symbol error at the linker stage.
So, what’d I’d prefer to have the option for is to generate two files, a .h and a .c file.
The .h file would contain a list of all the indices, event ids, GUIDs and so on declared as externs, the .c file would contain what the current .h file does. Thus you’d be able to make use of the .h file wherever you like.
Hope that makes sense.
- earltedly asked 7 years ago
- You must login to post comments