[Solved] Sound effect load delay

Update: The "solution" was to realize that bluetooth headsets turn off automatically when there is a period of no sound. Then the bluetooth won't turn on fast enough to play a sound effect from no sound. This causes the sound effect to start playing in the middle. Playing background music, or using non-bluetooth speakers, solves the problem.

Hi,
I want to make the "fall" sound effect play when the character slips in a dialogue (during an event), because that's funny. However, when I trigger the following event, only the second half (about) of the "fall" sound effect is played, which sounds awful. I think this is because the fall sound effect is for some reason not loaded in time for it to play. Is there a way to tell RPG Maker MZ to load the sound file BEFORE it starts to play it?
Capture.PNG


What I've tried:
  • If I "play" the sound file at the beginning of this dialogue at 0% volume, I still get only the second half of the sound file playing. (So apparently playing at 0% volume does not load the sound file.)
  • If I "play" the sound file at 1% volume at the beginning of the dialogue, then this seems to solve the problem (which appears to confirm my theory that the sound file is not being loaded in time to be played!). However, if I play the sound file at 1%, the player can actually hear the sound file playing at the beginning of the dialogue. Which also sounds bad.

I'm running RPG Maker MZ on Windows 10.

Thanks in advance for any help!
I noticed I accidently wrote MV early on in my previous post -- just fixed that, sorry. But to update, I also get this sound delay problem on RPG Maker MV with the same general setup. This is even with using the plugin http://www.yanfly.moe/wiki/Anti-Audio_Delay_(Irina). Basically, the fall sound delays and only plays about the second half of it.
I tried calling webaudio directly as shown below, but this still does not appear to work. When it gets to $gameVariables.value(9).play(), it plays the Fall.ogg file but starts about halfway into it most of the time. I still cannot seem to figure out how to get the audio to be ready before playing it -- but maybe someone here knows how to better work with webaudio? Thanks!
Capture.PNG
Are you using Bluetooth speakers?
I had an issue with sound like that.. turned out to be the speaker itself.
@NaosoX I was just about to post that I discovered that was the problem!
Wow I think I just figured it out everyone, and it had nothing to do with rpg maker or anything software really. I was using a bluetooth headset and apparently it automatically turns off to conserve power, and it does not boot up fast enough when the sound effect plays to get the sound effect at the beginning. So then the sound effect was clipped in the middle because the headphones are too slow.

Wow I feel silly now haha. Well hopefully this post might help someone else out. 🙂

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-sound-effect-load-delay.143070/