Skip to content

Instantly share code, notes, and snippets.

@cob16
Last active January 13, 2020 13:49
Show Gist options
  • Save cob16/ee7bd9c11bb7b30a98ba968f80e7c1ca to your computer and use it in GitHub Desktop.
Save cob16/ee7bd9c11bb7b30a98ba968f80e7c1ca to your computer and use it in GitHub Desktop.
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 ValveSoftware/steam-for-linux#43

su -c "setsebool -P allow_execheap 1"

refrences

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment