man! this is more easy then i thought! i already have a littel mod-player. but there’s a problem.
if i play the song, and the song has finished, fmod plays is again at doubble speed or something like that!
how i notice that the song is finished?
FMUSIC_IsFinished(song) returns an long, but i don’t know what to do with it…
in the fmod module that you include with your project, you will have to change the IsFinished long return type to a byte data type. Then you will have to nest the call IsFinished to a call to CBool. For example, CBool(FSOUND_IsFinished).
- Anonymous answered 16 years ago
I wrote the fmod module for Visual Basic. I haven’t used a Boolean as return type because I thought there was a difference between a VB Boolean and a C BOOL.
Is the CBool(Var) really necessary?
I think VB will do this itself when you use it in if statements.
You’re right about the Byte instead of Long though…
I will change it and send it to brett, so it can be included in the next fmod.
- Adion answered 16 years ago
Please login first to submit.