mojira.dev
MC-274871

Some ogg files in resource packs are not played

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:

  1. Start any listed game version (or in between).

  2. Load the resource pack.

  3. Load a world with command permissions.

  4. Use the command "/playsound tmaannouncer:game.bombdetonated master @a"

  5. Observe the audio (or lack of), and the "Sounds" counter in the F3 debug screen.

  6. 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.

 

Linked issues

Attachments

Comments 2

Can confirm:

[media][media]

It seems attached file has some trailing junk (probably a header packet from some other stream). We've recently swapped Ogg decoders and non-compliant files are no longer accepted.

toomuchzelda

(Unassigned)

Community Consensus

Platform

Important

Resource Packs, Sound

1.21, 1.21.1, 24w34a

Retrieved