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);
FSOUND_Sample_SetMode( samp, FSOUND_LOOP_NORMAL ));
Thanks in advance for any and all help.
- selsine asked 16 years ago
Please login first to submit.