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

Related issues

MC-147623 Source distance doesn't affect custom sounds volume MC-148816 Sound Volume does not decrease at higher distance to jukebox (using own music added by resourcepack) MC-149198 Custom music disc sounds do not change volume with distance MC-149324 Sounds have unlimited radius. MC-150905 /playsound does not fade with distance MC-153062 Directional Audio bugs MC-153345 Resource pack music for music discs dont go silent after leaving jukebox MC-154409 The Audible Sphere for the playsound command is infinite MC-156750 Sounds in resource packs are always at maximum volume MC-157711 sounds no longer fade out when you move away from them using the /playsound command MC-159616 Custom Resource Pack Audio not affected by proximity volume MC-159721 Music Disc Volume (Resource Pack) MC-164517 Playsound : illimited radius of credits sound MC-171984 playsound with resourcepacks -> infinite hearing range MC-172667 Jukeboxes dosent get queiter while going away from it MC-174291 Playsound sounds to the whole world MC-198140 "close1-6.ogg" always play at full volume on my SFX pack MC-215286 Nether portal sound behaves strangely when using custom sounds MC-225094 Disc music hearable from anywhere MC-262858 Custom sound in the resource pack don't fade with distance MC-272618 Custom jukebox songs "range" error MC-272786 No fall off sound on Custom Jukebox song MC-277586 Some sounds played with /playsound don't respect player distance MC-279104 resourcepack custom sound has infinite attenuation range

Attachments

Comments

migrated
[media][media]
migrated

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

violine1101

For non-custom sounds, see MC-146297.

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

boq

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

migrated

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.

violine1101

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.

migrated

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.

migrated

(Unassigned)

Community Consensus

Sound

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

Retrieved