As mentioned in my first post, I'm trying to override sf::Music to support music loop points. The term loop points are usually used in music composing software (eg. Propellerhead Reason). A lot of games also have this feature. Say for instance that you have a song that has an intro and a main theme. In some cases, to create a little extra dynamic flow, you only want to play the intro once, then repeat the main theme over and over (eg. until either you or the boss dies). There are a lot of songs that start out weak and fragile, but picks up and turns into a steady rock and roll beat;D It would certainly be a mood killer if, in the midst of battle, when all the rage is built up and the song simply restarted playing the fragile beginning. Loop points solves this problem since you can have the part with intensity repeated and the intro only played once. Back in 2010, a user requested this be added to the sf::Music class:
http://en.sfml-dev.org/forums/index.php?topic=2957.0As far as I can see, this feature hasn't been added yet. However, Laurent suggested it could be implemented using the code in this post:
http://en.sfml-dev.org/forums/index.php?topic=2957.msg19539#msg19539As you can see, that's nearly the same code as what I currently have. I pretty much copy-pasted the whole of that code, but changed the variable names.