The bug
When a player leaves a world while a sound plays and then enters any world during the same game session (without closing the game), this sound plays again. But this is a glitched sound, and that's why:
Its loudness is only affected by the Master Volume slider or the distance from the source of it
It appears regardless of the world you entered, either at coordinates from the previous world, or "from nowhere", independent of your coordinates (e.g. background music, minecart riding sound)
Some of the sounds play infinitely, even though the causes of them already disappeared (e.g. elytra or minecart sounds)
This sound plays in the Pause menu
This sound stays when you close the world, and plays in the menu. It also persists when you enter a world. This allows to "collect" many long or persistent sounds when entering worlds multiple times.
It can cause overlapping background songs, where you have many glitched ones and (maybe) a normal one.
If the sound was previously attached to coordinates, then upon exiting and entering other world it will again "move" to them.
All the glitched sounds can be removed by reloading the sound engine (F3+T)
Steps to reproduce:
Play any sound or make something play it
Pause while it is still playing
Close the world and reopen it
You'll hear this sound again
Related issues
is duplicated by
relates to
Attachments
Comments


Temporary solution?:
Try to switch your master volume in the game to 0 then set it back to normal.

This also happens with the guardian attack sound. Also, setting master volume to 0 then back again does not stop the bug. The only way to end the sound is to relog.

Can confirm, also happens in 1.10-pre1

Can confirm, is super annoying

Also happens to background music.

Please do not mark unreleased versions as affected.
You don't have access to them yet.

Also happens with custom sounds/music.
I hope this will be fixed soon..

Confirmed for 1.12-pre7

Confirmed for release 1.12.1

This also happened in release 1.12.2

confirmed latest 1.13 snapshot, 17w43b

Confirmed for 17w47a Debug file given.