NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Firefox (pkgsrc binary): no sound



On Sat, 15 Apr 2023, tlaronde%polynum.com@localhost wrote:

Having updated Firefox to 107.0.1, and being on NetBSD 9.3/amd64, there
is now no sound when trying to watch/listen a video.


Works for me: recent 9.3_STABLE + newly installed firefox-107.0.1.

Has anyone a clue about how to find what Firefox is using or trying to use?


One method is to use fstat(1) when the video is being played (or even when
paused). One of the firefox processes should have /dev/audio opened:

```
$ for pid in $(pgrep -x /usr/pkg/lib/firefox/firefox) ;
  do fstat -p $pid; done | fgrep audio
rvp      firefox     6654   40* audio 0xffffe710678a5cb0
$
```

Check the `about:support' page too. Mine shows:

```
Media

Audio Backend   sun
Max Channels    12
Preferred Sample Rate   48000
Roundtrip latency (standard deviation)  NaNms (NaN)
Output Devices
Name                            Group       Vendor  State   Preferred Format                          Channels  Rate                                       Latency
VIA product 8446 01h (default)  /dev/audio  VIA     Enabled All       default: S16LE, support: S16LE  2         default: 48000, support: 1000 - 192000     40 - 7680
VIA product 8446 01h (0)        /dev/audio0 VIA     Enabled None      default: S16LE, support: S16LE  2         default: 48000, support: 1000 - 192000     40 - 7680
Intel product 2806 01h (1)      /dev/audio1 Intel   Enabled None      default: S16LE, support: S16LE  2         default: 48000, support: 1000 - 192000     40 - 7680
```

The only thing that seems relevant, when capturing error messages, is
this:

OpenCubeb() failed to init cubeb: file
/work/www/firefox/work/firefox-107.0.1/dom/media/AudioStream.cpp:281

What is "cubeb"?


https://github.com/mozilla/cubeb
https://github.com/mozilla/cubeb/wiki/Backend-Support
https://blog.mozilla.org/webrtc/firefoxs-audio-backend/

-RVP


Home | Main Index | Thread Index | Old Index