0
0

Hi,
in the old Fmod 3.xx there was a command SetEndCallback that I use when a sound stopped when it has come to the end by itself. Fmod set this flag by it self.
Now in version 4 I can’t get this to work. I don’t find how I shall do.

Is here anyone that can help me with a samplecode how I can get when I sound has stopped playing (sound end).

I’m using VB6.

  • You must to post comments
0
0

Try using [b:35ymiqqy]Channel::setCallback[/b:35ymiqqy] with [b:35ymiqqy]FMOD_CHANNEL_CALLBACK_END[/b:35ymiqqy] as type parameter.

  • You must to post comments
0
0

Is it possible to get this for an entire event? I could see this being quite useful.

Jeff M.

  • You must to post comments
0
0

I tryed some different thing but it don’t do what I say.
Where in the code shall i put setcallback. In the init of Fmod, when I load the file or when I start play the file.
I test it in both loading the file and when I start play the file and every time it is call the function setcallback ones first.

Are here any simple sourcecode of a player that uses callback anywhere?

  • You must to post comments
0
0

Hi,
I’m not shure that I’m doing right. But I can’t get it to work.
This is how I’m doing.

result = FMOD_RESULT
Player= I have more that one player that can play a file

Code
result=FMOD_System_PlaySound(System, Player, Sound(Player, 0, Channel(Player)

CheckResult ‘ Rutin to check errors

result=FMOD_Channel_SetCallback(m_Channel(Player),FMOD_CHANNEL_CALLBAKTYPE_END, EndCallback(Player),0)

(EndCallback is the rutin used after the callback occured)

CheckResult ‘ Rutin to check errors

In Endallback I then have the rutin that I use after the callback is send.

I have put in a timer that every 1sec are doing a FMOD_SYSTEM_UPDATE

What is wrong in my code????
I have no more ideers what I’m doing wrong.
I’m totaly helpless.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.