Combining Sinks

Now you could change the output channel of your game to the OBS null sink and the audio would be redirected there. Unfortunatly this also means that you won't be able to hear it anymore.

To solve this, we can create a combine-sink to redirect the audio to both channels. The two numbers have to be the IDs of your speaker/headphones and the null sink.

➜  ~ pactl list short sinks
1       alsa_output.pci-0000_1f_00.3.iec958-stereo      module-alsa-card.c      s16le 2ch 44100Hz       SUSPENDED
2       alsa_output.pci-0000_1d_00.1.hdmi-stereo-extra1 module-alsa-card.c      s16le 2ch 44100Hz       SUSPENDED
3       bluez_sink.38_18_4C_BE_25_8B.a2dp_sink  module-bluez5-device.c  s16le 2ch 44100Hz       RUNNING
4       null    module-null-sink.c      s16le 2ch 44100Hz       SUSPENDED

➜  ~ pactl load-module module-combine-sink slaves=3,4

Set up OBS

In case you want to stream the newly created null channel, you can right-click the audio in the audio-mixer and select the OBS null channel.

Setting up the audio

Now you can open pavucontrol (or audio settings of your desktop environment) and switch to the Playback tab. There should be an entry for every program playing audio (the game, the voice chat, etc.). For each of them you can now select your speaker/headphones if only you should hear it (e.g. voice chat), Simultaneous Output if the audio should be redirected to the stream and you also want hear it. Or you redirect the audio directly to the OBS channel if only the stream should hear it.

You can also set the volume for all programs and channels here.