Created attachment 214905 [details] This patch changes the flags to only be -j off With the flags provided for sndiod by this port and sndiod running, a microphone is not picked up in www/firefox. If the flags are changed to just be "-j off", the microphone works and Firefox (and perhaps other browsers?) can be used for video conferencing out-of-the-box.
I'm not even sure -j off is required, either, since it works without it.
The options are there to make multichannel audio work correctly as one would expect with sndiod in mpv like when using OSS. I do not see how this would break recording? It doesn't for me. This is with a virtual_oss device that was configured with only 2 mix channels instead of 8 and not with a "real" device, right?
The test was performed both with the built-in audio card (not the one from the dock) as well as with the composite virtual_oss device I normally use, so I'm not sure it's got anything to do with that. I've also got vague memories of someone telling me they needed to remove all of the flags but -j off.
To me this sounds like something is not right and we should not cover it up. Can you patch Firefox as in [1,2] and see if the problem goes away for you? As a quick check without recompiling Firefox try setting media.getusermedia.channels=1 in about:config first. [1] https://raw.githubusercontent.com/openbsd/ports/8f6b4efc570ad37f987db02e9540fe90f49ed3b4/www/mozilla-firefox/patches/patch-media_libcubeb_src_cubeb_sndio_c [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1633769
Both with and without the OID suggested, sndiod with the default flags (and -d to avoid it detaching) just returns and endless stream of this: snd0: rsnd/default: failed to open audio device snd0: rsnd/default: failed to open audio device snd0: rsnd/default: failed to open audio device Et cetera ad nauseum. I don't see why it's necessary to hardcode the flags in etc/rc.d/sndiod when it works fine without them, though? Rebuilding Firefox isn't really something that's possible, it takes almost a week. :(