I use FSOUND_NONBLOCKING as open mode for FSOUND_STREAM_OPENFILE().
Is there a possibility to receive a callbackmessage when the file is ready loading (FSOUND_MPEGACCURATE is also used, it may take some time 😉 )? Maybe I have misunderstood the callback definitions in the helpfile, ’cause English is not my mother tongue, but I think with the documentet callback messages this is not possible. Are there some undocumented/inofficial messages or do I really have to create a thread that polls the stream until it is ready and then send a message by myself?
- Anonymous asked 15 years ago
[quote="brett":1y74lfxb]create a thread? you dont have a main loop in your own app that can call GetOpenState once a frame?[/quote:1y74lfxb]
Not that kind you may know it from nonVCL/nonMFC-programming.
I use the VCL from Borland Delphi, and there is no real main loop, except for the onIdle-event, introduced in TApplication. And since this is too inaccurate, I rather use a thread that pools the stream and sends me a callback message.
[quote="bett":1y74lfxb]anyway to answer, no there is no callback.[/quote:1y74lfxb]
That was the thing I wanted to know.
- Anonymous answered 15 years ago
Is it also impossible to make a FSOUND_STREAM_NET_READY callback,
I would have to make some dirty thread construction to check is the NetStream has reached this state.
FMod does change the status so it could give a callback that the stream is ready to play which would make coding NetStream a lot easier and less dirty.
Thanks in advance.
/me is waiting for FMOD4
Please login first to submit.