I've noticed since updating to 1.20.1 a couple of weeks ago, some sound will momentarily not play (usually when breaking blocks).
I haven't yet figured out the exact circumstances, but I believe it's related to mining blocks. Thus far, I've only have no sound feedback from that action. When I'm using a tool to mine something (and I believe all times it has occurred, I have been holding down the mine action button for some time?), I'll sometimes stop hearing the sound feedback of said action. It's only momentary, and then sound returns after a second or two. I'm not sure if this is the "fix", but typically I'll stop the action and move, and then the sound has returned. It's possible that's coincidental and it would have returned either way though (it's only happened a few times thus far so I haven't had much chance to test the circumstances).
Other sound on my PC keeps playing so it's just Minecraft.
I am using OptiFine, though I'm not sure if that is relevant. The game is otherwise entirely vanilla version 1.20.1.
This isn't so much of a support thread (though if staff feels it is better as one, it could be moved) since I believe it's something to do with 1.20.1 (?) due to it never occurring before then, and I was mostly curious on just asking if anyone else had noticed this in 1.20?
I tried searching the web to see if it was a known thing with the latest version, but came up empty.
Grr, I'm trying to avoid F3 in my hardcore world though, but yes, I'll do that if it occurs again to see if that is a possible issue. It happened once again since making this post when I was digging out some stone for a small underground room last night. And it actually persisted for some time (I stopped mining and tried to start again to see if sound returned right away, but it did not). It wasn't until I tried placing a log perhaps ten or so seconds after the lack of block breaking sound that the sounds started playing as expected again.
I also noticed this happened a bit earlier, too, so I'm now wondering if it's just a sound thing, or if the lack of sound is an effect cascading from another cause. This picture is about five to ten seconds after I stopped doing anything. About five seconds later, it went away.
Or maybe that's a totally unrelated one off.
It's perhaps worth noting I have that option on for directional sound (I started using it in 1.19 when it was added), so I also have the thought in the back of my mind that maybe the sound is "playing" but the game thinks I can't hear it, and this issue is related to that? Regardless, the issue started after I updated to 1.20.1 for my hardcore world. None of my other worlds (still in 1.19) have any issues like this.
I couldn't find anything on the bug tracker except for this old (and still unresolved) bug report regarding the limit on how many sounds can play simultaneously, which is due to the sound library (OpenAL) that the game uses:
Also, what else you have around you that may be producing sounds, e.g. passive mob farms? A few comments mention situations where the breaking sound fails to occur, or overrides another sound (even one which is much louder):
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.
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
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.
Interestingly, another comment says that the real limit is 28 (the 1.6.4 source suggests that 256 is the limit, at least, each time a new sound is added it assigns it an ID which is incremented by one, rolling over to 0 after reaching 255), making it that much easier to hit, especially if newer versions typically have more sources making sound:
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.
That's the thing; this happens when I'm near a low/no amount of sounds besides what I am doing. To give you an idea of how few sounds I am around, I even had the idea of seeing if sounds besides what I am breaking continue... but this never happens when I'm near other sounds to where I can firmly make that distinction. The only thing I can clarify is that it only occurs when breaking blocks (and even then, it's rare).
It happened again last night when I was mining underground, and I tried to check F3 as suggested but either I was slow, or it's not the issue, as the sound count was very low (low single digit range) at that time.
To remove all doubt, is there any chance OptiFine could be doing this? OptiFine is still only in pre-release for 1.20 versions. I'm not placing blame, but I'm wanting to know if I should try playing without it to see? (I use it solely for anti-aliasing, and that would be missed.) Unfortunately, it can be so rare that I think even playing for a week and having no issue wouldn't be definitive enough to say.
Thank you AI generated content, but I'm afraid while that is some good advice in general, much of it doesn't apply in this specific situation. (If we're going live with AI generated content in the future, we may as well train it to be better, yes?)
1. The sound settings aren't relevant because the sound is normally there, but disappears for just a few moments.
2. I'm using no resource packs. But yes, I've been testing without OptiFine as it is a mod and I normally use it.
3. The game is on the latest version (this is when the problem appeared), and my audio drivers are up to date as well.
4. Minecraft isn't on Steam.
5. I haven't done this and I suppose it's worth the try but I have my doubts.
6. Mhm, that's exactly where we're at and what we're doing, haha.
Small update on where things are while it was bumped again but a bot anyway.
I've yet to have this issue occur again, and I've been playing a mix of with and without OptiFine (though I really think it's not related).
I'm therefore starting to think more that this might have something to do with the directional sound feature introduced in 1.19, and something in 1.20 changed with it (or else I just... never had any issues with it in 1.19 but then started to in 1.20, but even in 1.20 it's sparse so maybe I was just lucky before). I think this because while the issue itself hasn't occurred, what I have noticed is that sometimes sounds are quieter than expected, but still somewhat audible. So I sort of have this feeling the "lack of sound" moments is just a more extreme version of that and might be because the game thinks my player shouldn't be hearing it?
If the issue does return (it hasn't, yet), my next step would be to play with directional sound off (but I've taken a liking to it so I hope it hasn't become problematic one version after its introduction).
Another update with some conclusive factors this time.
It finally happened again, while mining. I immediately checked the F3 screen and sounds were at 2/247 before dropping to 0, so I think it's safe to say it's not an issue with too many sounds playing. I then resumed mining (this was about two seconds maybe after it had first stopped) and sound returned.
Unless someone happens to drop by at a later date and knows for sure what's causing this, I'm sort of going to presume it's something more limited in who it affects (as opposed to a widespread issue) and chalk it up to either...
1. A change to something related to sound between 1.20.1 and 1.19.1, as it never happened in the latter.
2. Directional sound, where it thinks I can't hear something I think I should.
3. OptiFine, which I'm wanting to doubt, but can't say for certainty as I don't know that far.
And really 2 and 3 would still make it fall under 1.
I'm wondering, did you see the sound count increase when mining a block (is the game even registering that the block hit / breaking sounds occurred, or is it just not audible for some reason)? It may also be a good idea for somebody to file a report on the bug tracker, especially if it can be reproduced by others / on different systems, making note of the fact that it is not due to too many sounds, else they may close it as a duplicate of the issue I mentioned.
I didn't see it before/as it happened as I don't tend to play with F3 up all the time, especially in my hardcore world. But as soon as it happened, I brought it up and looked at the sounds and saw they were at 2 and then dropped to 0.
It's just been hard to track since it's so infrequent to begin with.
I also brought it up now to check what you asked and noticed two things.
1. Yes, the sound goes up for each block broken. 99.999% (random number) of the time I hear things as expected (though I think sometimes quieter than I expect it should be, which is why i suspect the sounds are "playing" but not "heard" and it might be a directional audio change since 1.19.1).
2. I had this... very strange frame rate graph, and the response of the game changed in accordance with it. Every other frame was Green up to my refresh rate, and every other frame was much lower (with a White difference up to the refresh rate). This matched the feel of game to change with a very on and off stutter. Not sure what to make of it other than it seems to be from the polling of the F3 menu itself since response changes with it not up. Might be a one off (though I restarted the game and it persists), but it's a separate issue anyway so perhaps not worth exploring here.
I personally doubt that it's the directional sound feature, as I don't think that actually fades out sounds or changes their volume but just applies a different filtering. Are you also experiencing something like https://bugs.mojang.com/browse/MC-58715 which describes sounds actually fading out when you turn away from them?
I'm not sure. What I can say is whatever you're mining is basically in front of you, right, but you are also moving and turning a bit so it's hard to say if that might be what's going on.
What I do know is if sound "stops", it remains stopped if I continue mining (I never tried continuing a really long time though), but then when I stop mining and restart, sound returns. At least, that was case all but one of the time.
The other thing, and this may or may not be relevant, is it's so far only happened in the overworld. In the nether, I often rapid mine for netherack in a mine I have. I never noticed the issue occur when doing that. But again it's so rare to begin with so I can't say this might not just be down to chance. But mentioning it in case it might be relevant.
The directional sound does seem to work wonderfully, this possibility aside. And it absolutely worked fine in 1.19.1 (if the possibility for whatever is causing my current woes could have also happened to it, then i just never had it happen in 1.19).
So I have an update to this with more information, but it only makes it more strange to me.
I was playing and happened to have Afterburner open, and the sound stopped, so I tried recording for a moment. I've attempted this a number of times in the past, but every time, the sound would return as soon as I started recording. Probably because I would stop my movement/action and that's related? I don't know. Anyway, I caught it this time! I was breaking some deep slate, no sound was playing, I moved a bit and broke more, and it came back. Only... the recording has sound throughout the entire thing.
I'm at a complete loss...
The sound is failing to play when playing. Yet a recording picks it up?
To cover two likely suspected causes, those being either my speakers or hearing going bad, as I can hear other non-Minecraft sound sources (coming from my PC and otherwise) when the sound stops in Minecraft, I think that entirely rules that out.
Any ideas as to what could cause such a thing? Because I have no ideas. It's thankfully infrequent enough that it's not frustrating, but still.
I'm going to give this a final update in the small chance anyone else comes across it with the same problem.
I'm sure it's the directional audio sound option.
I've been playing with it off in my latest world. I've never had the sound not be audible.
I turned the option on earlier to see if maybe it would occur, and indeed it did.
That basically confirms it for me. Now whether I avoided it during my play time in 1.19, or whether something changed around the time of 1.20 (whether that was 1.20 itself or something else on my PC) I can't say. But I can say it's definitely that option causing it in my case. Issue solved I suppose.
*sigh* Sorry for the multiple consecutive posts but I guess everyone else has no idea either, and at this point neither do I.
My prior conclusion was actually wrong. The results strongly suggested it was the directional sound feature after the 1.20 update causing it, but I've now had it happen even with the directional sound feature disabled.
It's something with 1.20 (or more specially, something after 1.19.1) or my system then I guess. The latter seems more likely given the lack of replies since I started the thread, but it's only happening with Minecraft so I don't know anymore.
Either way, same as before, I don't think I care anymore and this can be put to rest. Just wanted to correct myself so the wrong conclusion wasn't left there.