NetBSD-Users archive

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

Re: Firefox (pkgsrc binary): no sound



Hello RVP and thanks!

Le Sun, Apr 16, 2023 at 08:51:47AM +0000, RVP a écrit :
> 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
> $

That's the problem: no thread is using audio... But:

> 
> 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

Here was the clue: I have Realtek and /dev/audio0 

/dev/audio0 is correct. But Firefox is really using /dev/audio (that has
to point to the real device) and /dev/audio was pointing to /dev/audio2
(perhaps because I was also testing NetBSD 10 beta from time to time for
infelicities with the framebuffer default font and size, and the
numbering changes).

Doing:

# audiocfg default 0

solved the issue.

Thanks again!

Best,
-- 
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                     http://www.kergis.com/
                    http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C


Home | Main Index | Thread Index | Old Index