Ok brett, I will try describe my problem,
In a indeterminate moment, we need to stop the current stream and play another one,
then i see is the stream is ready for play using this
t_int32 nState = FSOUND_Stream_GetOpenState (m_Stream.m_pStream);
if (nState != 0)
if (FSOUND_IsPlaying (m_Stream.m_nChannel))
is this return false, i proceed to play the stream
if (nFinalSize >1 )
bResult = FSOUND_Stream_SetSubStreamSentence (m_Stream.m_pStream,pnSeeker,nFinalSize);
else if (nFinalSize == 1 )
bResult = FSOUND_Stream_SetSubStream (m_Stream.m_pStream,pnSeeker);
m_Stream.m_nChannel = FSOUND_Stream_Play (FSOUND_FREE,m_Stream.m_pStream);
here is the problem
nFinalSize = 3 and m_Stream.m_pStream = a loaded and correct FSB file, SetSubStreamSentence fail in the call return 0, so what is that, where is the problem and how can resolve it.
Yes, we are using FSb for multi stream, we are made a footbal Sports game and have thousand of short stream.
Example using FSOUND_Stream_SetSubStreamSentence:
the commentator must say,
[“The Player”] [playername] [“put the ball in play”]
Length time is about 7000 ms, when we played it, the time after the EndCallback is about 8500ms to 9000 ms, 1500 ms more as the stream length.
we need this time to avoid delay in the events.
Please login first to submit.