Any solution to this BGM delay?

I've just been using RPG Maker MV now for a few days (it was a Christmas present from a friend.) and I couldn't help but notice the delay in playing BGM, especially custom ones that are imported in. It's incredibly annoying, especially for scenes that need perfectly timed music to help set the mood. I've even tried using a preloader plugin (http://forums.rpgmakerweb.com/index.php?/topic/46515-preload-manager/) but it didn't' seem to do much for me, unfortunately, as the delay is still there. Are there any other preloader plugins I could try, or any other solutions to this problem? Thanks in advance.
Are you sure that you were preloading the correct audio file? Because the only other reason it'd be lagging is that it's taking too long to read the actual data. I don't find that Galenmereth's preloader is a good option because of the way it holds data indefinitely, but in this case it'll at least help you see if it's an issue with loading.


Also, how soon does the BGM you're testing with play in the game? Is it the title theme, or the background track to a map?
Perhaps I'm editing the code incorrectly? This is what I'm doing, and I'm no programming whiz so I'm not sure if it's right or not. The delay is for all BGM and is around 2-4 seconds for built in music and 5-6 for custom music.

notepad++_2016-12-29_23-59-06.png
When you run the game and press F8, what does the console tab say in the new window?
I don't experience any delay at all for BGM.  What are the file types you're using?
What if you check the time in the PC every frame? might still go a bit off course on lower framerate runs due to the check not being done quickly but I think it should work more accurately especially if you will always wait for at least a whole second (if you get any inaccuracy it should just fall to a very few milliseconds).
When you run the game and press F8, what does the console tab say in the new window?

The console shows the preloader loading in the songs I request, but still has a delay with them once the game starts running.

I don't experience any delay at all for BGM.  What are the file types you're using?

OGG.

What if you check the time in the PC every frame? might still go a bit off course on lower framerate runs due to the check not being done quickly but I think it should work more accurately especially if you will always wait for at least a whole second (if you get any inaccuracy it should just fall to a very few milliseconds).

How would I do that?
I don't know the code to check the PC time in JS but I do think such a function exists...


EDIT: this thread seems a good look http://stackoverflow.com/questions/10211145/getting-current-date-and-time-in-javascript


basically you can do something like


var currentdate = new Date();
var datetime = "Last Sync: " + currentdate.getDate() + "/"
+ (currentdate.getMonth()+1) + "/"
+ currentdate.getFullYear() + " @ "
+ currentdate.getHours() + ":"
+ currentdate.getMinutes() + ":"
+ currentdate.getSeconds();


to get the full current data/time.. then you could use that to calculate the time elapsed every frame. Do take note that it's not the exact code that you will be using..

Original thread: https://forums.rpgmakerweb.com/threads/any-solution-to-this-bgm-delay.72868/