The bug
The new sound engine introduced in 1.14 sometimes causes sounds in a world to play late when an event happens. If the game lags as a result of high memory usage, then it would also sometimes cause sound to stutter.
The lag might also cause music to stop completely if the Music slider is turned on. All of these problems did not happen before 1.14.
Causes
The sound delay might be caused by the new sound engine having to load a sound right when a corresponding event happens in a world. If the Music slider is turned on, music would stop completely due to them just being streamed from the corresponding files.
Once again, these problems did not occur in previous versions.
Note before reproduction
The bug might only affect certain sound cards, so please attempt reproduction first before confirming it.
If successful, please check for the sound card involved by following the procedures below if using a Windows operating system:
Open the Windows start menu, and then search for the "dxdiag" program.
Open the program, and then click on the "Sound" tab.
→ ✔ The sound card can be seen in the "Device" section.
Please comment sound cards in the Comments section.
Attachments
Comments 5
If you are using a Windows operating system, please follow the procedures above to determine the sound card involved and then comment it in the Comments section.
Can confirm. I attached a debug report of me loading a world, having creative music play, and lagging the game (via /particle), and it stops the music. Note that this still happens naturally as well, not just with commands.
I can confirm sound desync in version 1.18.2. Without loading a world file the menu sounds can be out of sync. The sound issue only happens to Minecraft, I have 100s of games. My computer is up to date for all drivers and windows updates. My CPU & GPU do not show any major load issues while playing Minecraft. The desync happens even if the menu sound was in sync when before I open a world. If I sit afk (approximate average 30 mins) while going to do random things around the house. Come back to sounds no longer being in sync. I'm forced to exit Minecraft completely to fix sound issues. Restart Minecraft and sounds are fixed. My render distance is 12 for servers and 24 for single player as I like being able to step back and see the entire build as well as exploring the world. I have gone afk for over 8 hours and sound is synced most of the time. The delay can be rather large.
EDIT:
I forgot to mention my sound cards are Realtek high definition audio (speakers and headphones) and NVIDIA High Definition Audio (Samsung TV)
Can confirm for 1.15.2