Skip to content

Instantly share code, notes, and snippets.

@cob16 cob16/Fadora HRTF.md
Last active Jan 13, 2020

Embed
What would you like to do?
TF2 Linux Fadora 26 HRTF setup

Install openal

sudo dnf install openal-soft.i686 openal-soft.x86_64

Now we need to point steam to use these more up to date vershions of open al To find where dnf installed our files we can run: rpm -q --filesbypkg openal-soft.i686 openal-soft.x86_64 | grep libopenal.so.1$ On fadora 26 I got:

openal-soft               /usr/lib/libopenal.so.1
openal-soft               /usr/lib64/libopenal.so.1

The files we want to replace can be found with this command

find ~/.local/share/Steam/ -name libopenal.so.1.*

So to tell steam we add a simlimk like this

# 32-bit
ln -sfT /usr/lib/libopenal.so.1 ${HOME}/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libopenal.so.1.13.0
# 64-bit
ln -sfT /usr/lib64/libopenal.so.1 ${HOME}/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libopenal.so.1.13.0

Configure openal

#acticate openal on the system echo "hrtf = true" >> ~/.alsoftrc

add these to launch options (forces better audio and skips valve intro)

-novid -snd_openal

//add these to your autoexec.cfg dsp_slow_cpu 1 # Disable in-game spatialiazation snd_spatialize_roundrobin 1 # Disable spatialization 1.0*100% of sounds dsp_enhance_stereo 0 # Disable DSP sound effects. You may want to leave this on, if you find it does not interfere with your perception of the sound effects. snd_pitchquality 1 # Use high quality sounds

To be able to here all audio you need to disable this SE linux feature as valve have written some dangerous code in there mp3 decoder

See this issue if there is a resolution https://github.com/ValveSoftware/steam-for-linux/issues/43

su -c "setsebool -P allow_execheap 1"

refrences

https://wiki.teamfortress.com/wiki/Oculus_Rift_User_Guide#.28Linux_only.29_Enabling_Binaural_Audio https://github.com/ValveSoftware/steam-for-linux/issues/43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.