mojira.dev
MC-249275

HRTF / 3D audio doesn't work properly on certain systems

the hrtf feature added in this update does not work

a workaround on a linux system is to add the needed hrtf data files from the openal-soft github

however this does not work on windows (see attachments)

Attachments

Comments 15

violine1101

I've tested the snapshot on Windows and tried the 3D audio, and while it appeared to make a very slight and subtle difference in how the sound was played back it wasn't nearly as noticeable as in your linux video.

I don't know enough about this and also don't have a linux installation handy, so I'll mark this as plausible for a dev to look at.

syarumi

I'm personally unable to reproduce this issue. Using windows 8.1 and with my earphones i do notice a difference when switching the 3D option just like in your clip from linux, specially when testing MC-220080 this option kind of fixes it. I haven't messed with any files (at least that i remember), so not sure if this is hardware related or either a library issue?

BreadLoaf

i should add that if you play other games that use openal you may have these hrtf data files present on your system

and depending on the version of openal those games use they may or may not be usable by the game

but openal will always try and load these files first the current working directory of the process is just one of the places it searches for these files it also searches some system wide folders

so people who have this working may just have the data present on there system from something else

migrated

I am also facing this issue

On my ubuntu system, I can actually feel the immersion of the HRTF sound.. which is great
But on windows, there is almost no difference

But, I actually fixed it!

By installing the latest OpenAL from openal.org

I think that minecraft should be able to install this file by default.. but somehow doesn't..

migrated

Can confirm in 1.19 pre-release 3.

Also, in my case it works, but it doesn't work as it should. Here's an example of how it should work in the end – you can clearly hear that the sound source is above or below you (which is impossible when using classical stereo). But in Minecraft I hear sounds as if they are always on the same plane with me: https://youtu.be/m20wGWhHqPI

In other words, I hear a realistic binaural sound around me, but it is always at the eye level of the character, without changing the position in height (vertical direction).

Debug crash:

[media]
5 more comments
migrated

Found out a way to use a different version of the ALsoft dll with MC.

You can add this line to the end of your java args in the launcher...

 

-Dorg.lwjgl.openal.libname="{path}\{file}"

 

...to get MC to use a different dll for OpenAL.

Go to %appdata%\.minecraft\libraries\org\lwjgl\lwjgl-openal\3.2.2\ and open archive or unzip the lwjgl-openal-3.2.2-natives-windows.jar file.
In here is a OpenAL.dll that is used pre 1.19 MC.

Go to %appdata%\.minecraft\libraries\org\lwjgl\lwjgl-openal\3.3.1\ and open or unzip the lwjgl-openal-3.3.1-natives-windows.jar file.
In here is \windows\x64\org\lwjgl\openal\OpenAL.dll that is used for 1.19 MC

So you can use one of those by extracting the dll out of the jar archive then use the java arg to point to it.

If you want to try a newer version
Go to https://openal-soft.org/openal-releases/ for the latest release version 1.22.2, you want the \bin\Win64\softoal.dll from that archive.
If you want the latest dev version go to https://github.com/kcat/openal-soft/actions and click the latest fix for the master branch and there should be a zip with just the softoal.dll in it.

migrated

still an issue in 1.19.2

migrated

still an issue in 1.19.4

migrated

still an issue in 1.20

migrated

Still an issue in 1.20.2

BreadLoaf

(Unassigned)

Community Consensus

Platform

Low

Sound

22w11a, 1.19 Pre-release 3, 1.19, 1.19.1 Pre-release 5, 1.19.1, 1.19.2, 1.19.4

Retrieved