Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Simonciott

Pages: [1]
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:
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
 

Thank you to anyone who can give an answer :)

Pages: [1]