[Bug] Music delay (1.5.0/1.5.1)

User: Oscar92player.
Maker Version: RPG Maker MV 1.5.0/1.5.1 (Steam Version)
Bug: The BGM delays 1-2 seconds before it starts playing, in game and editor as well.
How to Replicate the Bug:
  • Unrar the sample project.
  • Now open it with MV and start the game. Then, talk to the character below you, and it will play the BGM.
  • Go to the BGM folder, inside the Audio folder. Play the file "CL_OnajiTakamiHe.ogg", and you'll see that the music plays inmediately.
  • If you are using the second sample project, then play the RTP file "Field2.ogg".
  • Try to play the files (from both projects) inside the editor, through the Sound test, and you'll see the music delay in the Editor.
Sample project link: Tiny MV Project (v1.5.0) Sound delay
Second sample project link (using a default BGM from MV): Tiny MV Project (v1.5.0) Sound delay (MV audio)
Other:
  • The name of the first sample project says 1.4.1, but the core plugins and PIXI are in 1.5.0. Also, this one contains one custom audio.
  • The second sample project uses a RTP BGM file from the most updated version of the engine.
  • The effects of sound delay are more noticiable when you deploy a project for use in web browsers. There, you can see a delay of 5-8 seconds.
  • The project weight cannot be more compressed than 7.87Mb, exceeding the maximun of 5Mb requisite.
  • Thanks to SRDude for the tiny MV project.
Computer details:
Processor:​
  • AMD A10-5745M APU with Radeon(tm) HD Graphics
  • 2.1 GHz
  • 4 cores
Video Card:​
  • AMD Radeon HD 8670M
  • 1.0 GB of Dedicated Memory
  • 1024 MB of Total Memory
  • Pixel Shader Version 5.0
  • Vertex Shader Version 5.0
Video Card #2:​
  • AMD Radeon HD 8610G + HD 8670M Dual Graphics
  • 3.0 GB of Dedicated Memory
  • 4.0 GB of Total Memory
  • Pixel Shader Version 5.0
  • Vertex Shader Version 5.0
RAM:​
  • 8.0 GB
OS:​
  • Windows 10 Home (64-bit) Build 1703 (a.k.a. Creators Update)
I loaded your file, looks like it is MV 1.5, unless there is a hidden file I don't know how to check. I do get a delay on that music file, but I also get that delay in the editor too for that music file (which is different from your results).

Went back to 1.1 to check, no delay that was noticeable. So it is something that is different from 1.1 to 1.5, or something in the file itself.

Not aware of that sound file though, doesn't look like a default one from the editor. Can you try it again with one from the RTP (like say Town 1, as that is one of those I'm not noticing a delay in with even version 1.1) and report your results?

Also, note I'm not a dev, just reporting the results I get. If someone else decides to run the file and gets no lag, can you please post your system specs? Mine are really close to the OP's (I say that based on a previous thread. I have a 2.3 GhZ Intel Core7).
Not aware of that sound file though, doesn't look like a default one from the editor. Can you try it again with one from the RTP (like say Town 1, as that is one of those I'm not noticing a delay in with even version 1.1) and report your results?
I made a second sample project with "Field2.ogg" as the music file and updated the threat with a new link, to make a comparison between the project with the custom music file and the RTP one, so you can see what happens. There is a music delay with that file too.
Ok, I just noticed something. I just moved over from Windows 7 to Windows 10, and now my ACE music files have a slight delay in the editor when using RPGMaker ACE too. No delay is occurring in game though (so far, but will keep listening to check). I wonder if Windows 10 changed something in how files are accessed, which could be causing this. Will see what I can find with some research.

To anyone else encountering this. Can you post the following info:
-OS it occurs on (Windows 7/8/10), and whether it was 32 or 64 bit version.
-Size of the music file the delay occurs on.
-An estimate of how long the delay is.

If you could, I think it could help the dev team. Now remember I'm not part of the dev team, but I used to troubleshoot computers back in college, so maybe if I approach this the same way I can find some info the dev team finds useful.
Ok, I just noticed something. I just moved over from Windows 7 to Windows 10, and now my ACE music files have a slight delay in the editor when using RPGMaker ACE too. No delay is occurring in game though (so far, but will keep listening to check). I wonder if Windows 10 changed something in how files are accessed, which could be causing this. Will see what I can find with some research.

To anyone else encountering this. Can you post the following info:
-OS it occurs on (Windows 7/8/10), and whether it was 32 or 64 bit version.
-Size of the music file the delay occurs on.
-An estimate of how long the delay is.

If you could, I think it could help the dev team. Now remember I'm not part of the dev team, but I used to troubleshoot computers back in college, so maybe if I approach this the same way I can find some info the dev team finds useful.
Do you think Windows 10 can be related to the problem? I mean, in the past I've had problems with Windows 8 and Windows 8.1 when using an RPG Maker game in fullscreen (a lot of lag when using this mode), but never though it can cause a problem with audio files or the way Maker reproduce them.

If this is true, maybe the only way to solve this is by updating MV to improve the compatibility with Windows 10?
Honestly, no clue. But it could be worth investigating how the file structure is set up in Windows 10, as well as how the permission settings are (and how they changed going from Windows 7 to 8 to 10), and seeing if that can cause a delay. Only reason I say this is I already hit an issue in Windows 10 where I had to get permission from myself to just delete a file (which is impossible, so the file's stuck on the HD), and someone said Windows 10 blocks out a lot of file permissions on programs in the Windows and Program Files directories.

But, I have no idea how true that is. I would need more research to say more. Right now my info is 5th hand at best.

And, maybe the issue is JavaScript. So who knows?
This is a known issue, change the sound device to use dolby works and I dunno why.
They said they fixed it several updates ago, however it was never fixed and users are still have this issue.
This is a known issue, change the sound device to use dolby works and I dunno why.
They said they fixed it several updates ago, however it was never fixed and users are still have this issue.
No way to change my sound device to use Dolby because I don't have a Dolby driver and the option does not appear on my Sound Properties, my sound card driver uses Realtek High Definition Audio.
Same issue as Oscar92player, no option to set it to Dolby. I did googleing on how to get a Dolby driver installed on windows 10, and it was pretty convoluted. I doubt anyone we release a game made in MV to will know how to do it. So if that is the issue, then yes, I agree with the OP that it needs to be fixed, else I see no way to release a commercial game with MV as it seems Windows 10 is defaulting to Realtek High Definition Audio.
Also, one of the updates that were supposed to fix the sound delay only fixed the default music for MV, reducing the size of the files and changing the bitrate of the music. And even with that, the delay still happens with those sound files, so it is not fixed after all.

Original thread: https://forums.rpgmakerweb.com/threads/bug-music-delay-1-5-0-1-5-1.82330/