Hello!
I've come upon what I believe to be somewhat of a glitch, here. Please correct me if I'm doing something wrong, but there appears to be a point wherein SetPlayingOffset causes SFML to stream an incorrect part of the audio file.
#include <SFML/Audio.hpp>
int main()
{
sf::Music music;
music.OpenFromFile("song.ogg");
music.Play();
music.SetPlayingOffset(97392);
while (music.GetStatus() == sf::Music::Playing){}
return 0;
}
I tested this short snippet with a file that contains one second of white noise at the very beginning and 199 seconds of silence. When run (for me), this program will immediately play the white noise.
That number, 97392, is interesting - any lower and it sets the offset correctly and the white noise does not play. I believe there are several other points later in the file that cause this odd behavior as well.
Again, I may be doing something stupid here. Let me know!