0
0

Quick on, anybody have a quick description of what a callback is?

Please :)

  • You must to post comments
0
0

A callback is a pointer to a function. This kind of function is called very often so the code inside a callback (especially with sound dsp) must be optimised and efficient. Some interest of callbacks : files function (for reading a file/seeking), memory callback (user’s alloc/realloc/free functions), dsp callbacks (it is a function sending sound data, the user can do what he want with it) …

  • You must to post comments
0
0

Can I use a callback to start a function after the stream has finished playing, so that I don’t have to poll constantly??

thx.

  • You must to post comments
0
0

Yes! FMOD has a Stream callback for that very use. Use FSOUND_Stream_SetEndCallback and if you are using VB then you can use it like this:

dim Result as boolean
Result = FSOUND_Stream_SetEndCallback(stream, AddressOf MyFunction, 0)

  • You must to post comments
0
0

I tried to get it working in Delphi 5 but without success. Could post a Delphi example?? That would really help me out 😉

  • You must to post comments
0
0

I have a problem. In VB ide, SetEndCallback work fine, but in .exe, when my application call the callback, this crash (protection fault) and close.
Any idea?

  • You must to post comments
0
0

Maybe VB Ide version use a fmod version 3.7 and compiled version use another fmod version. Usually this is the issue.

  • You must to post comments
0
0

No. I have only 3.70. But happen with all versions.

  • You must to post comments
Showing 7 results
Your Answer

Please first to submit.