On Mon, May 11, 2026 at 02:43:03PM +1000, Jason Tubnor wrote:
> 
> On 5/11/26 10:59, Stuart McKim wrote:
> > At some point in the last month (I think), firefox stopped getting
> > microphone audio from my USB webcam. I've tried another webcam, and a
> > USB audio adapter. When I go to a website that needs audio, such as a
> > videoconference, I get prompted to allow the microphone, which I allow,
> > but no audio goes through. When using mictests.com, it recognizes that I
> > have a microphone named "default", which makes sense for sndio, but no
> > audio is detected.
> > 
> > Microphone audio works fine in ungoogled chromium, and other
> > applications.
> > 
> > I'm not sure when this started, since I only rarely use the microphone
> > in firefox, but it would be nice to not need chromium for my video
> > calls. I *think* it was working on 19 April when I had a video call.
> > It's also possible I joined that call from Linux.
> > 
> > Any thoughts of where to continue debugging?
> > 
> I don't think it is a sysctl issue where you haven't enabled recording but
> worth checking:
> 
> # sysctl kern.audio.record=1
> 
> https://www.openbsd.org/faq/faq13.html#enablerec

I've done that.

> Another thing might be default is different between what Chromium is using.
> See: https://www.openbsd.org/faq/faq13.html#usbaudio
> 
> $ sndioctl server.device=1

Perhaps what's complicating this is that audio playback is through the
integrated audio (audio0 at azalia0), but recording/microphone is
through the USB webcam (audio1 at uaudio0). To make this work, I have
the following in my .xsession:

# use built-in audio output
export AUDIOPLAYDEVICE=snd/0
# use secondary audio input (first usb device, webcam)
export AUDIORECDEVICE=snd/1

For reference, the output of sndioctl is:

buffalo ~ $ sndioctl -f snd/0
input.level=0.486
input.mute=1
output.level=0.494
output.mute=0
app/firefox.level=1.000
app/pulseaudio.level=1.000
app/ungoogledc.level=1.000

buffalo ~ $ sndioctl -f snd/1
input.level=0.749
input.mute=0
output.level=1.000
app/audacity.level=1.000
app/ungoogledc.level=1.000

Perhaps firefox isn't using that environmental variable?

-- 
Stuart A. McKim, P.E.
Idaho Falls, ID

Reply via email to