I’m struggling with my fmod-based media player. It all works fine but if the streaming server stops then my app begins stuttering, and I don’t know how to stop it.
Basically I do this:
Result := FMOD_System_CreateSound(aSystem,PChar(Url),
FMOD_DEFAULT or FMOD_CREATESTREAM, nil,aSound);
if Result=FMOD_OK then
Result := FMOD_System_PlaySound(asystem, FMOD_CHANNEL_FREE, asound, false, channel);
This all works fine.
but when the stream stops (because the remote server is down) then I check this:
I get a Starving=true, but if I then open a new stream (to a different server) with create_sound and then playsound the app hangs at the playsound.
I also tried stopping the channel with FMOD_Channel_STOP, but it hangs there,
also if I try to do a FMOD_Sound_Release, it hangs on that call.
And with hanging I mean more than several minutes not responding ( I do not know how much more, I am not that patient).
Is there any way I can correctly stop playing this stream, and play the next one?
The version is 4.22.3
- doskabouter asked 7 years ago
- You must login to post comments