Well after another session of hacking, I seem to have made the sound skips to stop, the music is playing smooth now, but it seems to be somewhat not fully syncronized to the video (the previous version was like this too).
This was an ugly ugly ugly one-line hack but it worked, but it is nothing...