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 17

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.

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?

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

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..

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]
7 more comments

still an issue in 1.19.4

still an issue in 1.20

Still an issue in 1.20.2

This issue occurred in my environment as well, and since it became a significant problem after the 26.1 update, I investigated it further.

At least in my environment, switching to an analog headphone connection enabled the ability to switch Directional Audio in-game (of course, the sound quality was considerably lower compared to the USB connection).

Previously, this problem did not occur by explicitly specifying the OpenAL.dll used in 1.20.2 as a JVM argument and using it with other versions.

Incidentally, this method should not be used in 26.1, as older versions of OpenAL.dll cause crashes.

From these points, it seems the problem lies with OpenAL, not Minecraft. Perhaps it stopped supporting USB headphones at some point in the update?

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.

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