0
0

Hi,
How can speed up the call to the callback?
i have a average of 1500ms between the play and the EndCallback.

Thank in advance. [/code]

  • You must to post comments
0
0

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.
Any idea.
Thank.

  • You must to post comments
0
0

Hi brett,

When i use FSOUND_StopSound (nChannel), FMod not call to the EndCallback function associated to this stream.
I am using FSB in FSBANK_BUILDMODE_SINGLE.
That´s happend in some machines in another not.

Thank. Charlie.

  • You must to post comments
0
0

Ok brett, I will try describe my problem,
In a indeterminate moment, we need to stop the current stream and play another one,
FSOUND_StopSound (m_Stream.m_nChannel);
then i see is the stream is ready for play using this

[code:3dklx7yo]
t_int32 nState = FSOUND_Stream_GetOpenState (m_Stream.m_pStream);
if (nState != 0)
return true;
if (FSOUND_IsPlaying (m_Stream.m_nChannel))
return true;
else
return false;
[/code:3dklx7yo]

is this return false, i proceed to play the stream

[code:3dklx7yo]
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[0]);
m_Stream.m_nChannel = FSOUND_Stream_Play (FSOUND_FREE,m_Stream.m_pStream);
[/code:3dklx7yo]
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.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.