PulseAudio
Firefox without PulseAudio (with apulse)
about:config
| Key | Value |
|---|---|
| security.sandbox.content.write_path_whitelist | /dev/snd/ |
Start Firefox with apulse wrapper:
APULSE_PLAYBACK_DEVICE=plughw:CARD=Generic,DEV=0 apulse /usr/lib/firefox/firefox
Games based on Unity3D crash when PulseAudio is not running
It seems that problem occurs with specific libasound2 version (1.2.2).
Add to /.asoundrc
# hack for Unity3D games (wrong sound device probe)
# cf. https://github.com/alsa-project/alsa-lib/issues/27#issuecomment-592976868
pcm.!surround21 0
pcm.!surround40 0
pcm.!surround41 0
pcm.!surround50 0
pcm.!surround51 0
pcm.!surround71 0
Playback of line-in stream
$ pactl load-module module-loopback