SFML community forums

Help => Audio => Topic started by: drmoth on November 18, 2009, 02:41:15 am

Title: Minor streaming-looping bug
Post by: drmoth on November 18, 2009, 02:41:15 am
I've found a minor bug which is really not important, but I thought I'd flag it anyway..

If the file size of streaming (music) audio is less than the streaming chunk size then looping is ignored and playback always stops after the sound is played.

I believe this is due to
bool RequestStop = FillQueue();
which will return true in this case before entering the while-loop in SoundStream::Run()

Understandably streaming audio should never be this short (it defeats the purpose of streaming!), but it would be nice to have consistent behaviour if possible :)

thanks
Title: Minor streaming-looping bug
Post by: Laurent on November 18, 2009, 08:18:22 am
I see. I'll try to fix this, thanks for your feedback :)