0
0

Hi,

I’ve searched the forums trying to find out how to do this and have been unsuccessful so far, so I apologize if this has been fully answered in another post.

Basically I am trying to loop a FSOUND_STREAM. I can do this properly if the user wants the sound to loop when they initially load it by using FSOUND_Stream_OpenFile and FSOUND_LOOP_NORMAL. The problem arises when the user wants to “turn the looping on” while the stream is playing.

So far I have been able to accomplish this using the FSOUND_Stream_SetEndCallback and then playing the stream again from the callback. This works fine, the only problem is that there is a 0.5 – 1 second gap between when the stream ends and when the stream begins again.

Is there anyway to turn looping on while the song is playing? I read somewhere that this is possible using 3.62 but I was unable to accomplish it in that version using:
samp = FSOUND_GetCurrentSample(nChannel);
if (samp)
{
FSOUND_Sample_SetMode( samp, FSOUND_LOOP_NORMAL ));
}

Thanks in advance for any and all help.

selsine

  • You must to post comments
0
0

Thanks that was the problem, foolish me using the wrong call. Sorry about that, once I used the new function everything began looping properly.

Thanks for all of your help with this.

Is there any idea of when 3.62 will be released?

  • You must to post comments
0
0

Thanks

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.