Using VS2015, C++, SFML 2.4.1, sf::Music class.
I have a .ogg music file with an intro-body-outro structure. I play its intro once, then loop the body indefinitely.
I achieved this by adding
if (my_music.getPlayingOffset().asMilliseconds() > end_of_body)
my_music.setPlayingOffset(sf::milliseconds(beginning_of_body);
inside of
while(my_render_window.isOpen())
However, when the transition occurs, the song hiccups. What should I do there to make it seamless?