0
0

A stream can be for obvious reasons only played at a single position. FMOD is internally able to find out if and which channel a stream is currently playing on (FSOUND_Stream_Stop is able to call FSOUND_StopSound internally). However there seems to be no method to find out if a stream is currently playing through the API. I’m currently using a custom list for playing streams to cache that information. Is there a native (through the FMOD API) way as well?

— thanks, Chris

  • You must to post comments
0
0

I do store the channel handle, but doing just that doesn’t seem to help with detecting a second attempt to play a specific stream. Imagine both attempts have access to the same stream but are otherwise independent. I would need a function like isStreamPlaying(FMOD_STREAM*). Iterating over all channels seemed to be prohibitve (btw. how to enumerate channel handles?). I see two solutions: Creating a global list of streams currently playing or to create a wrapper for FMOD streams that stores a “currently playing count”. In wich case one has to makes sure that streams are only played through the wrapper.

— best, Chris

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.