1
Audio / Music cuts off at the start of loop
« on: October 20, 2022, 07:05:12 pm »
Hi, I'm new on the forums. I'm having problems with the sf::Music::setLoopPoints() function.
At the start of the loop the audio gets cut off for around half a second and then continues normally.
I don't know if it's a problem with my computer (considering that it's really slow), or if I'm doing something wrong.
Code:
Thank you to anyone who can give an answer
At the start of the loop the audio gets cut off for around half a second and then continues normally.
I don't know if it's a problem with my computer (considering that it's really slow), or if I'm doing something wrong.
Code:
music.setLoop(true); //I'm not sure if this is necessary
music.setLoopPoints(sf::Music::TimeSpan(sf::seconds(13.882, music.getDuration()))); //To anyone who wonders, 13.882 is the precise time I want the loop to start at
music.setLoopPoints(sf::Music::TimeSpan(sf::seconds(13.882, music.getDuration()))); //To anyone who wonders, 13.882 is the precise time I want the loop to start at
Thank you to anyone who can give an answer