mojira.dev
MC-146721

Stereo sounds don't become quieter when the player walks away

Mod Notice

While we are on topic of resource packs, please make sure your custom sounds have same number of channels as vanilla ones - otherwise you may have problems with volume and position (see OpenAL specification, section 5.3.4 for reason)

Rule of thumb: if you can move away from sound (i.e. it plays in world at certain position), keep it mono. If it's UI, background music or ambient sound it can be stereo.

– @unknown in this tweet

After rewriting of the sound engine, when playing vanilla sound using /playsound command it gets quieter when the player walks away, but when playing custom sound from a resourcepack, voluming down stops working. I am attaching a video showing the problem and sounds.json

Linked issues

MC-147623 Source distance doesn't affect custom sounds volume Resolved MC-148816 Sound Volume does not decrease at higher distance to jukebox (using own music added by resourcepack) Resolved MC-149198 Custom music disc sounds do not change volume with distance Resolved MC-149324 Sounds have unlimited radius. Resolved MC-150905 /playsound does not fade with distance Resolved

Attachments

Comments 6

not just custom sounds also, as far as i know, beacon sounds, dispenser failed sounds, dropper failed sounds.

For non-custom sounds, see MC-146297.

Is this issue with custom sounds still present in 19w14a?

Are those custom sounds stereo? Since they will always play exactly on player (OpenAL limitation).

Yes, those sounds are stereo. Mono work normally, but after such a big change on the official wiki should be some information about the new functionality of sounds.

As noted in this tweet by @unknown, this is caused by the new version of OpenAL that Minecraft is using as of 1.14. Therefore resolving as working as intended.

While we are on topic of resource packs, please make sure your custom sounds have same number of channels as vanilla ones - otherwise you may have problems with volume and position (see OpenAL specification, section 5.3.4 for reason)

Rule of thumb: if you can move away from sound (i.e. it plays in world at certain position), keep it mono. If it's UI, background music or ambient sound it can be stereo.

Thank you so much for the information! This helped me greatly in figuring out where I was messing up when I made the sound files.

Kalendarz2

(Unassigned)

Community Consensus

Sound

Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14

Retrieved