When I use the SetEndCallback it returns true but then when I close the stream it doesn’t call back! It calls back only when the stream has ended playing. Maybe Im not doing it right but here is the callback:
FSOUND_Stream_SetEndCallback stream, AddressOf endcallback, 0
Public Function endcallback(ByVal stream As Long, ByVal buff As Long, ByVal length As Long, ByVal param As Long) As Long
stream_ended = True endcallback = 1
And, if it matters, the stream is a CD track.
- Paranoid_Android asked 13 years ago
FMOD doesn’t call your endcallback when you close your stream, it only calls it when your stream ends playing by itself. If you’re calling close then you know exactly when the stream ends (as soon as you call close) so just do whatever is in your endcallback right there.
Please login first to submit.