morning,
I have sound and music playing, my problem is that when setPlayingOffset is called it hangs for about .25 seconds and then plays from that location. The location it plays from is good, but i get about a quarter second of silence. I am using it as music in a small array for actual music, rain and anything else that may arise.
I've done some googling but cant find anything... any ideas?
The Below are c+p'ed from multiple places - hope its coherent
sf::Music music[3];
void Soundtrack::musicreconciliation(ENV &env, int i) {
if (env.musicbuffername[i] == "4 Overworld") {
env.music[i].setPlayingOffset(sf::Time(sf::milliseconds(7000)));
env.musicbufferduration[i] = 4250; //frames to be expired before calling this func again
}
else if (env.musicbuffername[i] == "rain") {
env.music[i].setPlayingOffset(sf::Time(sf::milliseconds(2000)));
env.musicbufferduration[i] = 120;
}
}