mojira.dev
MC-36976

Large custom OGG files cause the game to stuck when trying to play them.

Update: It took me a day to figure out what comment poster Louis meant by making it a streaming sound, but apparently there's a setting in the JSON for that: ""stream": true", with that added to the specific sound.. it works fine.

As soon you load a VORBIS sound file with a length around 3 minutes and a size of about 4MB by using the command '/playsound', the game freezes until its fully loaded and then starts to play it.

Comments 4

For large audio files, you must make it a streaming sound. It is advised to use this sparingly, though.

Interesting, I will check that out, and see if it works and then I will come back and report.
But is there any help and or information about that issue, I'm not familiar with special settings to the vorbis format which allows streaming..Sounds familiar though.

And I believe this is because with normal sounds, the game tries to cache the entire file before playing. However, large files are obviously a problem. You set large files to stream, but then there could be other complications when sounds interact, which is why you should use them sparingly. Could someone specify exactly what the problem is with overlapping streaming audio?

Can you give any information about the right encoding settings? I used ffmpeg with the ogg container and the lib_vorbis codec. I don't know of any option to make it stream-able.

Hagen T

(Unassigned)

Unconfirmed

sound

Minecraft 1.7, Minecraft 1.7.1, Minecraft 1.7.2

Retrieved