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)
- Paranoid_Android answered 15 years ago
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) …
Please login first to submit.