Bug 261898 - www/firefox: audio glitches with media.cubeb.backend="oss"
Summary: www/firefox: audio glitches with media.cubeb.backend="oss"
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-gecko (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-12 14:50 UTC by Mateusz Piotrowski
Modified: 2024-05-18 03:09 UTC (History)
6 users (show)

See Also:
bugzilla: maintainer-feedback? (gecko)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Piotrowski freebsd_committer freebsd_triage 2022-02-12 14:50:07 UTC
Hey,

I'm experiencing audio glitches when playing audio in Firefox. My audio backend is set to "oss". When I change it to "sndio" it works just fine. I've tested VLC and it just works (but I'm not sure what backend it uses).

The issue could be related to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260620 but I'm not sure.

Versions:
- firefox-96.0.3,2 
- FreeBSD 14.0-CURRENT main-n252861-77223d98b6f8
- vlc-3.0.16_9,4
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2022-02-12 15:47:32 UTC
(In reply to Mateusz Piotrowski from comment #0)

No noticeable glitch here with oss. 

Is there a particular web page where a glitch might be reproducible for me?

% pkg info -x firefox 
firefox-97.0_3,2
% uname -aKU
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #2 main-n252997-b6724f7004c-dirty: Mon Feb  7 10:54:28 GMT 2022     root@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG  amd64 1400051 1400051
%
Comment 2 Mateusz Piotrowski freebsd_committer freebsd_triage 2022-02-12 16:00:07 UTC
I've tested YouTube and SoundCloud.
Comment 3 Mateusz Piotrowski freebsd_committer freebsd_triage 2022-02-12 16:22:52 UTC
I updated Firefox to firefox-97.0_3,2. The problem is still present.

What other information could be useful to troubleshoot this issue?
Comment 4 Baptiste Daroussin freebsd_committer freebsd_triage 2022-06-22 07:35:17 UTC
I believe this has been fixed in the mean time, I used to experiment such "glitches" it is not the case anymore, can you confirm?
Comment 5 rkoberman 2022-06-22 19:08:23 UTC
Problem still exists for me. I switched to OSS and that helped, but I still get the pops which sound like playing an old vinyl record. They are most prominent in louder portions.

I am running stable/13-n250979-984a45d77b0: Fri Jun  3 16:32:53 PDT and have been having this problem with firefox since at least v96.
Comment 6 Graham Perrin freebsd_committer freebsd_triage 2023-05-27 17:40:55 UTC
(In reply to rkoberman from comment #5)

> … I switched to OSS …

(Switched from what, to OSS?)
Comment 7 rkoberman 2023-05-28 04:17:37 UTC
Originally from sndio and, when it stopped paying attention to the cubeb (not sure what it was trying to use, but it did not work), built it without any other audio options to force OSS. Did have the odd issue that some files did play, but most did not. In any case, things are playing with OSS.
Comment 8 Tatsuki Makino 2023-06-05 09:11:39 UTC
Now, I think 114, or 113 after bug 270436 has been fixed, media.cubeb.backend settings are working as intended.
But 114 has a broken about:support, so we can't see where audio is being output to in browser.

So it seems that the only way to check is to use the following method.

fstat -f /dev/ | grep dsp

If firefox uses oss directly, then the firefox line will appear.
If any sound server lines appear, they are routed through it.

sockstat -u -c | grep firefox

Sound servers of some kind are often routed through unix domain sockets.
If pulseaudio is used, pulse-*/ line will appear.
If sndio is used, sndio/sock line will appear.
If jack is used, /jack_ line will appear.

As for ALSA, I don't know how to see any sort of status.
Is it possible to determine by writing the following line to ~/.asoundrc that the sound will not be emitted, etc.?

pcm.!default pcm.null

... First, why not make sure that we are really outputting directly to oss by these?
Comment 9 yaniebogisish 2024-01-31 05:00:36 UTC
For me, the problem persists. Even after making the conversion to OSS, I'm still hearing pops, like I'm listening to an ancient record. They stand out the most at the loudest parts.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260620 https://geometry-dash.io/

I have been experiencing this issue with Firefox since at least version 96 and am using stable/13-n250979-984a45d77b0: Fri Jun 3 16:32:53 PDT.
Comment 10 Geometry Dash apk 2024-02-23 05:23:24 UTC
MARKED AS SPAM
Comment 11 AlBarton 2024-05-18 03:09:47 UTC
MARKED AS SPAM