1
Audio / Re: Negative offset for music, especially when looping ?
« on: October 26, 2023, 05:41:45 pm »
Thanks for the confirmation. Time to roll my own solution then !
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.
float loopDelay = 5.0f;
music.setPlayingOffset(sf::seconds(-loopDelay));
music.setLoopPoints(sf::Music::TimeSpan(sf::seconds(-loopDelay), music.getDuration() + sf::seconds(loopDelay)));
music.play();