Description of bug: update: HRTF stuck enabled even if it is showing as disabled in the Minecraft menu, thus distorting all sounds. When compared to older versions of the game every sound in the game sounds high pitched and sibilant. It sounds as if all of the subtle low tones in all of the sounds have been removed and it causes the sounds to sound distant and way less rich than in previous versions. This effects every sound in the game, however I have noticed some sounds are much more obvious than others. The most obvious ones to me are chests, eating, and swimming. (I am using windows 11 and java version 17.0.7)
Steps to Reproduce:
1. open up minecraft java edition in 1.20.1 and in 1.20.2 simultaneously. in both versions of the game open and close a chest repeatedly (this sound is particularly easy to hear the issue with) You will notice in 1.20.1 the sound is more "Full" and contains more lower notes 1.20.2 sounds distant, high pitched and lacking depth.
Workaround: I figured out a workaround for this issue. It appears that it is related to HRTF. To workaround this bug I created a file named alsoft.ini which contained "hrtf=false" in the %Appdata% folder. this fixed the issue on my end and proves the bug is related to HRTF. if other players are playing with HRTF enabled that would also explain why they may not notice a difference
Linked issues
is duplicated by 10
Comments 12
Can reproduce on Linux, both in Debian 12 and OpenSUSE Tumbleweed, installed in 2 different computers.
By editing /etc/openal/alsoft.conf on my Debian 12 computer to include the line drivers = alsa, audio works correctly up to Minecraft 1.20.1. In versions 1.20.2 and above, there is no audio output other than the narrator voice.
By editing the same file but adding drivers = pulse instead, I can hear the audio from every version, including 1.20.2 and beyond, but its quality is really low, like if it came from inside a tin can.
In both computers I'm using Pipewire, not PulseAudio, in case that has something to do with the issue.
I have compiled the Fabric mod provided by Bytzo in its comment to this issue and it has fixed the audio problems for me, both in Minecraft 1.20.2 and in the latest snapshot.
Thanks Bytzo for providing a workaround!
It used to be possible to specify a different version of the OpenAL library in a Java argument, but it doesn't seem to work anymore. It just crashes the game.
In the example below, the OpenAL dll version 3.3.1 placed directly under .minecraft is specified, but the game crashes just as if nothing was specified. It seems to have been fixed.
It was my mistake. The crash was caused by a space before the path specification. I've written it below so that no one else makes the same mistake.
People who are experiencing this bug probably had it working fine in 1.20.1 or earlier, so specifying the OpenAL library used in 1.20.1 may solve the problem.
I had the opposite problem of not being able to turn on Directional Audio, but this solved it.
Once you start up with 1.20.1, a folder named "3.3.1" should be created in ".minecraft\libraries\org\lwjgl\lwjgl-openal". Open or unzip "lwjgl-openal-3.3.1-natives-windows.jar" in that folder using the appropriate method (such as using 7zip), and copy "OpenAL.dll" from "lwjgl-openal-3.3.1-natives-windows.jar\windows\x64\org\lwjgl\openal" and place it wherever you like, such as in ".minecraft".
After that, please specify the following in the JVM arguments section of the launcher startup settings. Change the username etc. to suit your environment.
// Not work
-Dorg.lwjgl.openal.libname= "C:\Users\yourname\AppData\Roaming\.minecraft\OpenAL.dll"
// Work
-Dorg.lwjgl.openal.libname="C:\Users\yourname\AppData\Roaming\.minecraft\OpenAL.dll"the above option in version 26.1 will prevent the system from starting.
This is due to an outdated version of OpenAL; updating OpenAL will render HRTF unusable. Unfortunately, we have no further options.
I'm leaving this solution here for anyone who is still suffering from the same problem as me.
Solution:
Download the latest version from the OpenAL-Soft repository.(https://github.com/kcat/openal-soft/releases )
Unzip the downloaded file and run alsoft-config.exe located in the openal-soft folder.
Change "Channels" in the “Playback” tab from "Autodetect" to “Stereo”, then click Apply to close.
Start the game and check if HRTF works.
same happened to me on an older version sounds are fine but not on 1.20.2