I've been putting some music into my game. One track is 3minutes 2seconds, the other is 4minutes 4seconds. For the first track I set milliseconds as 305000ms in order to give my song a buffer to finish before the next song plays.
*Start of layout
+XAudio2: Play "ThisMusic.mp3"
*Timer is equal to 305000ms
+XAudio2: Play "ThisMusic2.mp3"
The problem is, instead of the "ThisMusic2.mp3" playing right after 305000ms have elapsed, it just sits silent for about 2 and half minutes, and then suddenly "ThisMusic2.mp3" begins to play out of nowhere.
I also tried the timeline object and got the exact same result.
My questions are:
1. Is there another method to getting these songs to play right after the time period ends instead of minutes after?
2. Is it a bug with milliseconds not calculating right?
3. Could it be an issue with my machine?
4. Should I be thinking Global variable here? I've created a clock in Construct using a global variable, but I'm not sure how I would approach using it for this?
I'm stumped. I've found that if I cut the ms time down I can get better time, but it's tricky trying to guess a time and requires me to listen the song all the way through in order to test it.
I even tried shorter files like one 22 second file jumping to a 26 second file. That one calculated perfectly using 22,000 ms, but the larger files are not working so well.