I encountered this annoying issue when joining my single player world on Minecraft 1.12.2 and decided to do some debugging to try and figure out why this is happening, I've found two issue which might be causing this issue:
MovingSoundMinecart is played every time an entity which is an instance of EntityMinecart is spawned (spawnEntity method in the WorldClient class).
MovingSoundMinecart is played by the SoundManager/SoundSystem before it's update method is called meaning the sound position (XYZ) is 0 / 0 / 0.
I encountered this annoying issue when joining my single player world on Minecraft 1.12.2 and decided to do some debugging to try and figure out why this is happening, I've found two issue which might be causing this issue:
MovingSoundMinecart is played every time an entity which is an instance of EntityMinecart is spawned (spawnEntity method in the WorldClient class).
MovingSoundMinecart is played by the SoundManager/SoundSystem before it's update method is called meaning the sound position (XYZ) is 0 / 0 / 0.