After installing OBS Studio, the sound disappeared in Firefox-ESR & Tor-Browser

There is sound in Telegram and Falkon.
I don't even know where to start.

# cat /dev/sndstat
Bash:
Installed devices:
pcm0: <ATI R6xx (HDMI)> (play)
pcm1: <Realtek ALC887 (Rear Analog)> (play/rec) default
pcm2: <Realtek ALC887 (Front Analog)> (play/rec)
pcm3: <Realtek ALC887 (Internal Digital)> (play)
No devices installed from userspace.

# sysctl hw.snd.default_unit
Code:
hw.snd.default_unit: 1

GTK-mixer opens and works fine.
But "pulsa" has been hanging like this for about 30 minutes, the clock is spinning... see picture.
 

Attachments

  • 2025-07-03_19-53.png
    2025-07-03_19-53.png
    9.1 KB · Views: 31
Well, wow.

Have you tried rebooting the whole metal host? That can restart some things that were forgotten about during the installation.
 
astyle, thank you! Look what happens... it's treated like this:
1. delete OBS-Studio;
2. delete "pulseaudio";
3. the pulse plugin for XFCE4 (mixer) is also deleted.
4. reboot.
5. profit: there is sound!

We do steps 1-5, but only with installation --->>> the sound disappears again in Firefox-Tor-browser, but is in Telegram and Falkon.
 
More of a workaround, but I had to use sndio for Firefox for best performance with a 4K video (post), and if mixer/default audio still works it sounds like using sndio would avoid Firefox using Pulse.
 
# pkg query -e '%a=1' '%n' | grep pulseaudio
Code:
pulseaudio
# pkg query -e '%a=1' '%n' | grep sndio
Code:
sndio
# pkg query -e '%a=1' '%n' | grep pipewire
Code:
pipewire
I am a happy owner of three whales. All three whales were installed as dependencies.
Now I need to remove everything except sndio. But your guide saved me - now the sound is everywhere. In /etc/rc.conf
I wrote sndiod_enable="YES".
But why without sndio the sound in Firefox did not work when installing OBS-Studio. I can't explain.
I didn't understand why the "pulse" mixer does not work...
Okay, I'll figure it out.
 
Well, this is exactly why I don't bother putting in effort to exclude PulseAudio in favor of something else like sndio. I just select every single sound system available when I compile my ports. And that way, I don't worry about sound not being available in a given app - I got sound everywhere, even in places I don't want - but then it's just a matter of editing a .conf file to tell a specific app to shut up and not make sounds at me. 😤
 
astyle, yes, I regularly read your useful posts about how you approach things.
I've taken them on board. It's just that my machine is so old that I can't compile on it yet.
But on another PC, yes, they'll most likely follow your recommendations! Thank you!
 
Maybe try setting media.cubeb.backend option to any sound server you want, i.e oss, pulse(?), pipewire(?) in about:config page of both Firefox browsers. OBS should have had installed another sound server and that could cause issues. Personally, I don't feel like using anything than pure OSS unlike those "sound server"s.
 
Back
Top