I’m a beginner with the FMOD lib.
I downloaded “FMOD Studio Programmer’s API and Low Level Programmer API” for linux.
When i want to use the FMOD_CHANNEL_FREE in my function i have this error :
main.c: In function ‘main’:
main.c:60:45: error: ‘FMOD_CHANNEL_FREE’ undeclared (first use in this function)
FMOD_System_PlaySound(system, ambiance, FMOD_CHANNEL_FREE, 0, NULL);
main.c:60:45: note: each undeclared identifier is reported only once for each function it appears in
make: *** [main.o] Erreur 1
I compile with the flag -lfmod and my code works if i replace FMOD_CHANNEL_FREE by NULL.
But when il click the ambiance song was cut.
For the install of the api i copied all file :
fmodstudioapi10604linux/api/lowlevel/lib/x86 to /lib
fmodstudioapi10604linux/api/lowlevel/lib/x86_64 to /lib64
fmodstudioapi10604linux/api/lowlevel/inc to /usr/include
My code : http://pastebin.com/eEi1GHbg
Can you help me please ? Thank you.
I’m on OpenSuse x64
PS: Sorry if i’m not in the good Categories.
It sounds like your mixing code written for FMOD Ex with the FMOD Studio LowLevel libraries.
FMOD Ex is our older library. It’s currently receiving bug fixes only and the last release is 4.44.54, available on our download page under previous products.
FMOD Studio is our new product, and has some API changes since FMOD Ex, including the removal of the FMOD_CHANNEL_FREE flag.
Oh ! Thank you a lot !
This solve my problem.
I read that it was probably a problem of release.
But I thought FMOD EX was another type of your products.
I should do more recent tutorials .
Thank you again.
Have a nice day.
Please login first to submit.