I've created the following event to seamlessly loop music tracks. The equation for volume makes it so I can have a music volume option control based on a number 0-10 (0 being off, and 10 being normal volume)
When I have the music volume set to almost anything other than 10 (more noticeable at softer volumes) when P2 plays, there seems to be a strange clip in the audio as if it started the audio at 10 and 1 tick later decided to play at the original volume. Once that happens once, it never does it again until you close the game and retest/open.
<img src="https://dl.dropboxusercontent.com/u/28104568/Music.PNG" border="0" />
Is this a bug? Or am I missing something? I should note they do overlap, but I've been told this is okay when using node-webkit.