mojira.dev
MC-234888

Several sounds cannot be heard if other sounds are played simultaneously

The Bug:

Several sounds cannot be heard if other sounds are played simultaneously.

Below, are just some of the examples of where this issue can be seen.

  • When death and hurt sounds are played simultaneously.

  • When player burning and shield block sounds are played simultaneously.

Steps to Reproduce:

  1. Obtain a shield and summon a husk that's holding a sword enchanted with fire aspect by using the command provided below.

    /summon minecraft:zombie ~ ~ ~ {equipment:{mainhand:{components:{"minecraft:enchantments":{"minecraft:fire_aspect":2}}, count:1,id:"minecraft:wooden_sword"}}}
  2. Switch into survival mode, allow the zombie to ignite you, and then use your shield to block further attacks from the husk, and listen closely.

  3. Take note as to whether or not several sounds can be heard if other sounds are played simultaneously.

Observed Behavior:

You are ignited from the fire aspect sword, but only the "minecraft:item.shield.block" sound is played to you, and the "minecraft:entity.player.hurt_on_fire" sound cannot be heard, therefore indicating that several sounds cannot be heard if other sounds are played simultaneously.

Expected Behavior:

Several sounds would be able to be heard if other sounds are played simultaneously.

Attachments

Comments 7

This might not be the only cause for this to happen, but i can confirm nonetheless, with subtitles can be seen how only one of the two sounds is played.

I would like to add some information to this. It appears that, at least on my Linux system, when sounds try to play simultaneously they can interrupt each other. I have noticed this with rain and walking sounds. Sometimes, when the walking noise plays, it will interrupt the sound of the rain to play the walking noise. It is also observable with music and walking in the same manner.

This continues to happen on 1.18.2-pre1. I don't know if users are allowed to add to the affected versions list so I figured I would post a comment.

This continues to happen on 1.18.2-pre3

I have solved this problem on my system. It appears that as a result of a hardware bug, I needed to explicitly configure which audio device is used by Minecraft (in the Minecraft config options). For some reason, the internal audio controller on my desktop has some issues that have caused me grief in past.

Explicitly configuring the audio output device seems to have solved it for me.

Additional information: this issue does not happen on Windows 11 where my HD audio hardware bug doesn't seem to happen. I run Arch Linux and there seems to be less correction for that (or it could be a kernel bug on the Linux side of things as well). Either way, I am not having this issue anymore with 1.18.1.

A variant of this seems to be that if a mob is killed with /kill or /damage in the same tick as being hurt (say, by a player_hurts_entity advancement function), their death sound doesn't play. This happens even if a /stopsound command is used to stop the hurt sound before running the lethal command.

Confirmed in 1.20.4, 1.20.5, and 1.20.6

Avoma

(Unassigned)

Confirmed

Platform

Normal

Sound

1.17 Release Candidate 2, 1.17, 1.17.1, 21w40a, 1.18.1, ..., 1.19.3, 1.19.4, 1.20.1, 25w02a, 1.21.7

Retrieved