Fmod prob
I have Dev''C++, this is what I do and this is what goes wrong.
The errors are coming from the linker.
-I include "Fmod.h" at the top of my prog (above or else I get a stream of compiler errors)
-I put fmod.dll in my folder
-I include libfmod.a into my project because Dev''C++ uses mingw.
Now I setup the stream and try to play it and any time I call a function from fmod I get linker errors.
d:\program files\window template.o undefined reference to `FSOUND_Init@12''
d:\program files\window template.o undefined reference to `FSOUND_Stream_OpenFile@12''
d:\program files\window template.o undefined reference to `FSOUND_Stream_Play@8''
Its like it isn''t reading from fmod.h to get the prototypes or something?
Can some1 tell me what I''m doin'' wrong or at least if I''m doin'' it right and the dam compiler/IDE is bein'' a pain.
Thanks
If I understand correctly you are putting the libfmod.a file into the project window. I think you have to quit it from there and set the following compiler option (Project->Further compiler options):
-lfmod
-lfmod
Thanks for your help, figured out what was wrong though and it was real annoying. In my project options I had
-D:\libfmod.a
And it was giving me no errors with respect to this file, like if I mistyped it it would say "cannot find file" etc. But when I removed the ''-'' in front of it, it worked fine. I must have spent an hour fiddling with it !!! Though now that its working I think FMod it a real good library.
Someone couldn''t help me with something else?, I have an mp3 playing using
FSOUND_Stream_Play(1, stream);
And when its done I want it to repeat, I checked the help file and I think its something to do with
FSOUND_Stream_SetEndCallback &
FSOUND_STREAMCALLBACK but I have no clue how to use them. Does any1 here have any idea.
Thanks again
-D:\libfmod.a
And it was giving me no errors with respect to this file, like if I mistyped it it would say "cannot find file" etc. But when I removed the ''-'' in front of it, it worked fine. I must have spent an hour fiddling with it !!! Though now that its working I think FMod it a real good library.
Someone couldn''t help me with something else?, I have an mp3 playing using
FSOUND_Stream_Play(1, stream);
And when its done I want it to repeat, I checked the help file and I think its something to do with
FSOUND_Stream_SetEndCallback &
FSOUND_STREAMCALLBACK but I have no clue how to use them. Does any1 here have any idea.
Thanks again
> And when its done I want it to repeat, I checked the help file
> and I think its something to do with
> FSOUND_Stream_SetEndCallback &
> FSOUND_STREAMCALLBACK but I have no clue how to use them. Does
> any1 here have any idea.
You don''t have to use these functions if you just want to make a stream looping. When you call FSOUND_StreamOpenFile(...) put the FSOUND_LOOP_NORMAL flag in the mode argument.
And yes, FMOD is great!
> and I think its something to do with
> FSOUND_Stream_SetEndCallback &
> FSOUND_STREAMCALLBACK but I have no clue how to use them. Does
> any1 here have any idea.
You don''t have to use these functions if you just want to make a stream looping. When you call FSOUND_StreamOpenFile(...) put the FSOUND_LOOP_NORMAL flag in the mode argument.
And yes, FMOD is great!

This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement