Some OGG files used in resource packs that previously worked fine, now now longer play. The is no audible sound played and no messages printed to client log. Additionally, in the F3 debug screen, the "Sounds" counter (x/247) increments and never decrements, suggesting some kind of leak. It can be reset with F3+T.
Attached is a sample resource pack that demonstrates this issue. It includes two sounds in namespace "tmaannouncer": "chat.goodgame" and "game.bombdetonated".
The first one (chat.goodgame) works fine, but the second (game.bombdetonated) does not work on recent versions. Of the versions I have tested:
Plays correctly on 1.20.4, 24w05a, 24w11a, 24w13a, 24w14potato, 24w14a
Does not work on 1.20.5 Pre release 1, 1.20.5 Pre release 2, 1.21
(Apologies, I could not seem to list these properly in the Affected Version/s field)
To replicate:
Start any listed game version (or in between).
Load the resource pack.
Load a world with command permissions.
Use the command "/playsound tmaannouncer:game.bombdetonated master @a"
Observe the audio (or lack of), and the "Sounds" counter in the F3 debug screen.
Repeat with an un/affected version for comparison.
There is a related issue: MC-259517
However, unlike this issue, the affected sound here is not corrupted (at least not in a manner that it can't be played in other applications). Additionally, the sound works fine on previous versions.
Can confirm:
[media][media]