0
0

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:
[code:1997qkdn]
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

End Function
[/code:1997qkdn]
And, if it matters, the stream is a CD track.

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

Oh I see, I guess I got confused because in the documentation it says [quote:3ebw4mqk]A callback occurs if the stream is forcibly stopped or closed.[/quote:3ebw4mqk]
Thanks!

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.