[MC-1538] Sound glitches when too many sounds are supposed to play Created: 31/Oct/12  Updated: 16/Oct/24

Status: Open
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2, Minecraft 1.4.4, Minecraft 1.4.5, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w09a, Snapshot 13w09b, Snapshot 13w09c, Minecraft 1.5, Minecraft 1.5.2, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.7.10, Minecraft 14w29b, Minecraft 1.8-pre1, Minecraft 1.8-pre2, Minecraft 1.8-pre3, Minecraft 1.8, Minecraft 1.8.3, Minecraft 15w44b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9.4, Minecraft 1.10, Minecraft 1.10.1, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w33a, Minecraft 16w35a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 1.12 Pre-Release 3, Minecraft 1.12 Pre-Release 6, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w03b, Minecraft 18w11a, Minecraft 18w14a, Minecraft 18w15a, Minecraft 1.13-pre1, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13-pre9, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w30a, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, Minecraft 18w43b, Minecraft 18w43c, Minecraft 18w44a, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w47a, Minecraft 18w47b, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03a, Minecraft 19w03b, Minecraft 19w03c, Minecraft 19w04a, Minecraft 19w05a, Minecraft 19w07a, Minecraft 19w08a, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w12a, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2 Pre-Release 3, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 1, Minecraft 1.14.3 Pre-Release 3, Minecraft 1.14.3 Pre-Release 4, Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 1, Minecraft 1.14.4 Pre-Release 3, Minecraft 1.14.4 Pre-Release 4, Minecraft 1.14.4 Pre-Release 5, Minecraft 1.14.4 Pre-Release 6, 1.14.4, 19w34a, 19w35a, 19w36a, 19w37a, 19w38b, 19w39a, 19w40a, 19w41a, 19w42a, 19w44a, 19w45b, 19w46b, 1.15 Pre-release 1, 1.15 Pre-Release 2, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15 Pre-release 5, 1.15 Pre-release 6, 1.15 Pre-release 7, 1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2 Pre-Release 1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w13a, 20w13b, 20w15a, 20w17a, 20w18a, 20w19a, 20w20a, 20w20b, 20w21a, 1.16 Pre-release 3, 1.16 Pre-release 6, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w28a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w11a, 1.17 Pre-release 2, 1.17.1, 21w37a, 21w39a, 21w43a, 21w44a, 1.18 Pre-release 8, 1.18, 1.18.1 Pre-release 1, 1.18.1, 22w03a, 22w05a, 22w06a, 1.18.2, 22w14a, 22w18a, 1.19 Pre-release 4, 1.19, 1.19.1 Release Candidate 2, 1.19.1 Release Candidate 3, 1.19.1, 1.19.2, 1.19.3, 23w04a, 23w05a, 23w06a, 1.19.4, 23w14a, 1.20.1, 23w32a, 1.20.2 Release Candidate 2, 1.20.2, 23w42a, 1.20.5, 1.21, 24w33a, 1.21.1, 24w34a, 24w36a
Fix Version/s: None

Type: Bug
Reporter: CallMeChris Assignee: Unassigned
Resolution: Unresolved Votes: 130
Labels: sounds

Attachments: PNG File 358014_image-2020-12-10-23-02-25-730.png    
Issue Links:
Duplicate
is duplicated by MC-10796 Bug with blazes sounds Resolved
is duplicated by MC-11750 Chest sound glitched/messed up when n... Resolved
is duplicated by MC-15172 Block Sounds Resolved
is duplicated by MC-16729 twinkle firework sound effect doesn't... Resolved
is duplicated by MC-20386 Chicken noises effect noises within a... Resolved
is duplicated by MC-24628 Sounds being cutoff Resolved
is duplicated by MC-39809 Noises are cut short when to many cow... Resolved
is duplicated by MC-49542 At least 8 pistons activated simultan... Resolved
is duplicated by MC-69868 Mob Noises interrupt each other's pla... Resolved
is duplicated by MC-78694 Music/Sound Trouble Resolved
is duplicated by MC-95714 Sounds get cut off if there are many ... Resolved
is duplicated by MC-127046 Audio cuts out when around bubble col... Resolved
is duplicated by MC-127417 sound bug Resolved
is duplicated by MC-128564 Sound effects Resolved
is duplicated by MC-130735 Bubbles caused by magma blocks/soul s... Resolved
is duplicated by MC-131496 Sound effect audio cuts out premature... Resolved
is duplicated by MC-134391 Audio crackle after updating to 1.13 Resolved
is duplicated by MC-134921 Turtles Remove Sounds Resolved
is duplicated by MC-136428 Sounds frequently getting cut short Resolved
is duplicated by MC-138800 destroying big flowers with tnt doesn... Resolved
is duplicated by MC-141570 Sounds randomly cut off before they f... Resolved
is duplicated by MC-144039 Explosion sound not hearable when tnt... Resolved
is duplicated by MC-144127 If TNT is blown up on top of lots of ... Resolved
is duplicated by MC-146653 Missing sound effects when raining Resolved
is duplicated by MC-207259 Sound limit is exposed by vast quanti... Resolved
is duplicated by MC-208608 Too many entities in 1 area causes so... Resolved
is duplicated by MC-208746 If there's a lot of noise nearby, you... Resolved
is duplicated by MC-225690 Minecraft ocean (around a temple) ove... Resolved
is duplicated by MC-264718 System-wide sound distortion upon mul... Resolved
is duplicated by MC-275254 Having a lot of minecarts in one plac... Resolved
is duplicated by MC-1668 Some sounds disappear e.g. You can he... Resolved
Relates
relates to MC-150892 Minecarts are registering as "Sounds"... Open
relates to MC-180398 Too many sounds causes client to stal... Resolved
CHK:
Confirmation Status: Confirmed
Category:
Sound
Mojang Priority: Normal
Area: Platform

 Description   

The bug

Minecraft can only handle playing 247 different sounds at the same time. It's possible to exceed this limit by having enough sounds played simultaneously, such as by placing numerous armour stands on top of a waterlogged conduit which is underneath lava. This could be fixed by increasing the sound limit to something like 65527, which would be infeasible to achieve in conventional gameplay.

The fix

Code analysis by ichttt can be found in this comment.



 Comments   
Comment by batbrain55 [ 23/Apr/24 ]

Can confirm in 1.20.5.

Comment by batbrain55 [ 03/Apr/24 ]

Can confirm in 24w13a.

Comment by Brain81505 [ 10/Aug/23 ]

Can confirm in 23w32a

Comment by Brain81505 [ 01/Feb/23 ]

Can confirm in 23w05a

Comment by Brain81505 [ 25/Jan/23 ]

Can confirm in 23w04a

Comment by C0RR2P73D [ 07/Jan/23 ]

Can confirm this in the latest version, ticket owner here since I cannot currently get into my account and cannot update this issue.

Comment by Fabian Röling [ 07/Apr/22 ]

It could still be improved by combining sounds together, bypassing OpenAL etc.. Or the most common sound could get less priority, that way the effects of this issue would be basically unnoticeable. So for example if you have 300 chickens around and mine a block, the block mining would get higher priority and 43 of the chickens would make no sound.

Comment by Xander Smith [ 07/Apr/22 ]

Code analysis

Based on 1.18.2 yarn mappings

I believe the issue is contained here and increasing streaming sources would help with the issue though I think 247 (in my case) is way too many.

SoundEngine#init

int i = this.getMonoSourceCount();
int j = MathHelper.clamp((int)MathHelper.sqrt((float)i), 2, 8);
int k = MathHelper.clamp(i - j, 8, 255);
this.streamingSources = new SoundEngine.SourceSetImpl(k);
this.staticSources = new SoundEngine.SourceSetImpl(j); 

Taking a look at getMonoSourceCount()

// ...
IntBuffer intBuffer = memoryStack.mallocInt(i);
ALC10.alcGetIntegerv(this.devicePointer, ALC10.ALC_ALL_ATTRIBUTES, intBuffer);

int j = 0;
while(j < i) {
    int k = intBuffer.get(j++);
    if (k == 0) {
        break;
    }

    int l = intBuffer.get(j++);
    if (k == ALC11.ALC_MONO_SOURCES) {
        return l;
    }
}

// ...

return 30;

In my case, this method returns 255. Because OpenAL can have a maximum of 256 sounds. (255 for mono, 1 for stereo)

OpenAL Soft has a practical limit of 256 simultaneous sources (the same maximum that can be allocated). It's all done in software, so the OS doesn't affect it.

This means that you can either trade streaming sources (records etc) or be stuck with 255.

 

TLDR: Minecraft is already using all the sound streams available for the hardware. This should be closed.

Comment by [Mod] ampolive [ 24/Nov/21 ]

The log spamming caused by multiple sounds was tracked separately in MC-177664, which was already fixed in 1.18 Pre-release 5.

Comment by lovexyn0827 [ 20/Nov/21 ]

These log items are sometimes supposed to be produced,as they are only presenting when failure in playing a sound the server intends to have it played takes place.However, outputting them is not a good choice, beacuse such a large amount of log printing is very expensive.

Some Solutions:

  • Remove the code of printing the log items driectly.
  • Batch the outputting,like printing the number of sound handles which is failed to be created per minute
  • Print the log only when the debugging mode is enabled
Comment by AftrPartie [ 05/Nov/21 ]

Observed this behavior in 21w44a with a large block of tnt

Comment by CallMeChris [ 28/Aug/21 ]

Requesting ownership of this ticket, as the owner of this ticket is my old deleted Jira account.

Comment by lovexyn0827 [ 17/Jul/21 ]

It is a very annoying problem which makes the client more lagged or crash by sending so many messages to the console.You may know that calculating the square root of integers between 0 and 1M and output to the console is more than 10 times slower than only calculating them.So the carpetmod decides to avoid the annoying messages by adding a rule to decide if messages like this should be output.

Comment by blublu_owns_123 [ 16/Jul/21 ]

Can confirm in 1.17.1.

Comment by Fabian Röling [ 15/Jul/21 ]

Such a concept does not exist on a bug tracker. This is not a forum, please only comment if you have additional relevant information.

Comment by [Mod] ampolive [ 15/Jul/21 ]

Can confirm in 1.17.1.

Comment by Iosiv Visokogorskiy [ 23/Jun/21 ]

I would like to request ownership of this ticket because reporter is deactivated

Comment by blublu_owns_123 [ 21/Mar/21 ]

Can confirm in 1.16.5

 

Comment by ItsThatSpicymeme [ 07/Mar/21 ]

Game crashes on 1.16.4/.5 when cap is regularly reached (i.e. constant spider hisses). Turning sound off in menu helps to circumvent the issue when rejoining the world.

Comment by blublu_owns_123 [ 19/Feb/21 ]

having a question does any have by any chance set the Friendly Creatures off at Music & Sound Options??? at my end have turn my to 100% and i can hear again

Comment by [Mod] Avoma [ 03/Feb/21 ]

Can confirm in 21w05a.

Comment by blublu_owns_123 [ 14/Jan/21 ]

still in latest release for snapshot

Comment by blublu_owns_123 [ 07/Jan/21 ]

still in latest release for snapshot and java edition

 

Comment by [Mod] CubeTheThird [ 10/Dec/20 ]

blublu_owns_123, while appreciated, it isn't necessary to confirm a report for a certain game version when it is already part of the "Affects Version" list. Understandable if you happen to miss it though, since it's fairly lengthy at this point.

Comment by blublu_owns_123 [ 10/Dec/20 ]

still in 1.16.4

Comment by CalXee [ 06/Dec/20 ]

Sculk sensors can be used to easily achieve the sound limit.

Comment by user-189af (Inactive) [ 26/Aug/20 ]

Can confirm, can i have ownership as their is no user that owns this.

Comment by Fabian Röling [ 22/May/19 ]

No, it's not the same. Did you maybe change something about your audio setup (connected headphones, muted or unmuted something, etc.) in the meantime? Minecraft didn't deal very well with that.

Comment by Daniel Smith [ 22/May/19 ]

Questioning whether this is the bug I'm experiencing in Minecraft 1.14.1. If I pause the game and return to it some of the sounds (walking on grass, breaking blocks, harvesting berries) become way louder. Moving the main slider doesn't fix this although some sounds do obey the slider. 

Comment by [Helper] ZeNico13 [ 17/May/19 ]

Still in 1.14.2 Pre-Release 1 and 1.14.2 Pre-Release 2

Comment by [Helper] ZeNico13 [ 13/May/19 ]

Still in 1.14.1 Release

Comment by [Helper] ZeNico13 [ 23/Apr/19 ]

Still in 1.14 Release

Comment by [Helper] ZeNico13 [ 19/Apr/19 ]

Still in 1.14 pre-3, 1.14 pre-4 and 1.14 pre-5

Comment by [Helper] ZeNico13 [ 10/Apr/19 ]

Still in 1.14 Pre-Release 1

Comment by Rex Liang [ 07/Apr/19 ]

in 19w14b you can reproduce it by putting 3 working beacons and a lot of mobs nearby and start a melon farm and sometimes when you farm the melons they won't play the breaking sound

Comment by [Mod] Pokechu22 [ 04/Apr/19 ]

I have to assume that there's some kind of performance or memory tradeoff or else they wouldn't make it configurable (I'd assume that the library uses a pre-sized array or something and using MAX_INT would allocate several gigabytes memory, but I'm not sure).

Comment by Connor Steppie [ 04/Apr/19 ]

I'd say a sound limit of 2147483647 would fix this issue.

Comment by [Mojang] Bartosz Bok [ 04/Apr/19 ]

Limit is in OpenAL-soft library we are using. Seems like we can increase it all the way up to MAX_INT, but for now we are testing default settings.

Comment by Fabian Röling [ 03/Apr/19 ]

Why is there a limit at all? What's the downside of increasing it?

Comment by [Helper] ZeNico13 [ 03/Apr/19 ]

Fixed in 19w14a? Because it's very hard to reproduce now with the new sounds limit.

Comment by Connor Steppie [ 03/Apr/19 ]

I suppose you could rectify that by increasing the sound limit even more, but that might not be feasible.

Would it be at all reasonable to have the sound limit be a customisable feature, like render distance is, so it can be adjusted if framerate/memory/other issues become a big enough problem with too high a limit? Or would that just be unreasonable?

Comment by [Mojang] Bartosz Bok [ 03/Apr/19 ]

Just as a note: second number is absolute limit, not high-water mark. And other pair is for streaming sounds (music, jukeboxes, etc).

As for closing: I'm not yet sure, since this should be enough for normal gameplay, but I can still hit limit on my machine.

Comment by Connor Steppie [ 03/Apr/19 ]

Should we resolve this as fixed then, since you can't come across it without trying super hard and it's therefore effectively impossible to encounter in any notable magnitude?

Comment by Fabian Röling [ 03/Apr/19 ]

With the test I mentioned in my second to last comment, I can no longer reproduce this issue, at least it's no longer obvious. But F3 shows something like "200/247+0/8", which I guess means that 247 was the maximum number of simultaneous sounds I had at any point, not 300 or more. Whenever I spawn more cows, I get so much server lag that I can't say for sure anymore if the bug is present.

Comment by [Mojang] Bartosz Bok [ 03/Apr/19 ]

Maximum number of concurrent sounds has been increased, so it's bit harder to hit limit (though it is still possible, for example with about 300 cows). Also, F3 menu now displays number of playing sounds.

Comment by Connor Steppie [ 03/Apr/19 ]

Having difficulty reproducing in 19w14a; potentially fixed.

Comment by [Helper] Johnibur [ 01/Apr/19 ]

Can confirm for 19w13b. Sometimes, the eating sound is missing when you eat while it's raining. Opening doors, chests, is sometimes missing while the bubble sound is playing. Other sounds missing as well when many are playing the same time, which ruins the gaming experience. And when you throw an enderpearl, generally you can't hear yourself taking damages at the point of impact.

Comment by Zack Jenkins [ 28/Mar/19 ]

I found that my audio randomly cuts out from time to time. Walking or running around, I can hear the noise from my speakers go silent for a second or two and the footstep sounds cutting out for that time. It isn't a hardware issue.

Comment by Connor Steppie [ 27/Mar/19 ]

...despite it already being marked as such three hours ago?

Comment by Makzevu [ 26/Mar/19 ]

Both issues were affected by 19w12a.

This bug changed to sounds being blocked from playing instead of exchanging current playing sounds with new ones, and MC-146297 resulted in the same snapshot. They were likely caused by the same change in code, or the rewrite of the sound system entirely.

Comment by Fabian Röling [ 26/Mar/19 ]

Why? Because it's also something with sound?

Comment by Makzevu [ 26/Mar/19 ]

Relates to MC-146297.

Comment by Fabian Röling [ 20/Mar/19 ]

Confirmed, they no longer cut off, but now just a lot don't play at all if there are many. Test scenario: Spawn a gazillion cows in a close space until they start squishing each other to death. Due to all the ambient sounds, most death sounds don't play. Really easy to see, due to all the red cows falling over and the rare death sounds.

Comment by Matthew [ 20/Mar/19 ]

The patch notes for this snapshot says that sound system was rewritten to reduce stuttering.

Comment by Connor Steppie [ 20/Mar/19 ]

Is sound handled differently in 19w12a? Sounds do not appear to be cut off anymore, but can fail to play.

Comment by Florian CUNY [ 24/Aug/18 ]

Affect 1.13.1

Comment by [Mod] Pokechu22 [ 08/Jul/18 ]

So that Awesoman3000 can update the affected versions instead of having to comment each time, since they've been more recently active on the tracker. (You're still recorded as the original creator in the history tab)

Comment by andychay2 [ 08/Jul/18 ]

Why reporter were changed !?

Comment by Makzevu [ 06/Jul/18 ]

Just an addition, if a creeper explodes in an ice spikes biome (snow blocks are the ground), the explosion sound doesn't play. Only the snow breaking sound plays.

Comment by Tobias Hotz [ 05/Jul/18 ]

This can be fixed by increasing the count of "normal" channels in the Paulscode's Sound Libary. The default count is 28, so 28 normal (non-streaming) sounds can be played at the same time. If you call "SoundSystemConfig.setNumberNormalChannels(int)" with a value like 128, 128 normal sounds can be played in parallel. Choosing a high enough number fixes this issue.

Comment by Connor Steppie [ 05/Jul/18 ]

Affects 1.13-pre6.

Placing numerous armour stands in lava on top of a conduit is an easy way to test this.

Comment by Josh O [ 28/Jun/18 ]

I can confirm this is still an issue in 1.13-pre release 5.
I'm not entirely sure, but it seems like it may have improved a tiny bit from 1.12.2 though.

Comment by Josh O [ 05/Apr/18 ]

Confirmed for 18w14a.

Comment by Fabian Röling [ 22/Jan/18 ]

Please stop editing your comment, use the preview instead. And in general you can now delete it. The versions are added and the other half is off-topic.

Comment by Craft [ 22/Jan/18 ]

Confirmed for 1.12.2
Also Confirmed for 18w03b

Soon as this gets fixed we can finally get Audio loops and all the missing game audio we have been missing for years:

https://youtu.be/eyzKuKAFOHU?t=1685

Comment by Josh O [ 12/Jul/17 ]

Confirmed for 1.12.

Comment by [Mod] Sonicwave [ 18/May/17 ]

Confirmed in 1.12-pre3.

Comment by Josh O [ 02/Jan/17 ]

Confirmed for 1.11.2.
It'd be really great if the sound engine didn't limit how many sounds could be played at once as I was building a noteblock song, but it ignores half the notes...

Comment by Dave Goldsmith [ 02/Dec/16 ]

Confirmed for 1.11.

Comment by Fabian Röling [ 13/Aug/16 ]

Can someone confirm for 16w32b?

Comment by husky2490 [ 25/Jun/16 ]

Nathanael Tronerud's idea would be thousands of times more pleasant to listen to, it's just extremely hard to code because object-oriented programming. Each instance of a chicken, for example, plays a sound randomly regardless of nearby chickens. The only reasonable place to limit sounds created by large groups of things is by controlling the shared link, the sound engine itself. If I recall correctly, Minecraft's sound engine was not created by Mojang; so they might end up having to create a new sound engine and it only gets messier from there.

Comment by Fabian Röling [ 22/Jun/16 ]

Confirmed for 1.10.1.

Comment by Fabian Röling [ 12/Jun/16 ]

Confirmed for 1.10.

Comment by Jagger [ 23/May/16 ]

Riding this track will stop the mine cart sound

Comment by ThePhysician2000 [ 23/Feb/16 ]

I've never been able to understand this glitch. Even if the sound would cause performance issues (probably why it's made to clip the sound), you usually get more issues for rendering the entities instead.
Additionally, @Nathanael Tronerud's idea sounds pretty good to me

Comment by Krev [ 23/Feb/16 ]

Sounds like your problem is different. Maybe not completely different, but different nonetheless.

Comment by Irritated Gamer [ 23/Feb/16 ]

Question! Is this ticket about loosing sound randomly too? Like I have a lot of cows and sheep in the same pen but I am in a different world now, creative flat no mobs and I just lost my sound. Nothing is playing. No music no water/lava no placing blocks sound nothing at all. Fortunately I get it back if I restart the game. Or is my problem completely different?

Comment by Immaterialise [ 17/Feb/16 ]

Confirmed for 1.9-pre1

Comment by Alexander [ 30/Oct/15 ]

Confirmed for 15w44b.

To reproduce, create a big pen and put too many mobs inside it.

Comment by Scott Weinblatt [ 15/Mar/15 ]

so how can i restore my sound back to normal?...

Comment by [Mod] Sonicwave [ 28/Aug/14 ]

Confirmed for 1.8-pre2 (seems to be a tad bit better than before, but definitely still there).

Comment by Krev [ 17/Jul/14 ]

This still occurs in the latest snapshot (14w29b).

Comment by [Mod] Ezekiel (ezfe) [ 22/Jan/14 ]

Is this still a concern in the latest Minecraft version 14w03b? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Dustin Held [ 02/Aug/13 ]

STILL AN ISSUE IN 1.6.2. MOD PLEASE UPDATE.

Comment by nate_dawww [ 14/Jul/13 ]

What really should happen is the game needs to detect how many of a particular sound source is within earshot of the player and if it is over X number of units, it should transition to a single sound file representing the entire multitude. For instance, if I have a certain number of chickens nearby, it will play "smallchickengroup.wav", or "mediumchickengroup.wav" or similar, rather than trying to call individual chicken noises for each chicken. This would be less resource intensive and it would be much more pleasant overall by avoiding phasing, chorusing, and overlap in the sfx.

To add a little bit of sophistication to the mix, the game might also try and still call individual chicken noises for any in your direct line of sight, even if within a larger group, as this would mimic how our brains actually filter sounds.

Comment by Adam J. Sycz [ 28/Jan/13 ]

I don't know how involved it is to code but I always wondered why entity to sound relationship within a time slice is 1-to-1? Within certain radius, new sound from an entity/block should not be generated/processed/emitted if the same type of (other) entity has the sound still playing. At the very least, to preserve ambiance, this should be capped at 3 and no more. Playing tens or hundreds of cows mooing in a pen makes neither any sense nor actually sounds any good with sound bytes eventually cutting each other out, not to mention causing way too many issues to be anywhere near worth it.

Comment by Kyle Cuthbert [ 25/Jan/13 ]

It makes sense to me that the number of sounds played at a given time would have a cap, however if that's what's going on the priority seems screwed up, for as you pointed out, blaze ambience seems to win out over everything.

I would suggest the following priorities:
1. Player Damage
2. Mob Death/damage
3. block change (pistons, buttons)
4. Hostile Mob ambience
5. Passive mob ambience
6. Constant sounds (water, lava, fire [including blaze burning noise], rain)

obviously I have missed some sounds (minecarts, explosions, drops) but I think you get the point

Comment by [Mod] CubeTheThird [ 25/Nov/12 ]

Can confirm.

Comment by Treydun [ 18/Nov/12 ]

Bug still exists in 1.4.4
It is an old glitch. One I wish would be fixed.

Generated at Sun Jan 12 11:54:47 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.