Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Oct 2021 19:46:39 +0200
From:      Tomasz CEDRO <tomek@cedro.info>
To:        Hans Petter Selasky <hps@selasky.org>, KIRIYAMA Kazuhiko <kiri@truefc.org>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: Mic does not work with Zoom on Chromium 92.0.4515.159.
Message-ID:  <CAM8r67Drhk5MHnX5TeSp8GfcHiRM7rmXZ6hE0AXwOn_YQw0NQQ@mail.gmail.com>
In-Reply-To: <0b1ded5a-cfc8-1c2e-7920-eac257332298@selasky.org>
References:  <202110041017.194AHqZ9085897@kx.truefc.org> <6323c7c6-1221-1bb4-6028-344fded44558@selasky.org> <202110041052.194AqeLc086237@kx.truefc.org> <a5eefd8b-c4aa-36fe-0ccf-269b010e65a8@selasky.org> <9d9fcf6b-8c2d-8659-bd42-dfb61d2d74f7@selasky.org> <CAM8r67A7jH2H5G-hvTfxyF%2B49Za%2ByZsNDRN=s1OxeYKHLvJ4YQ@mail.gmail.com> <202110051033.195AXBsX059249@kx.truefc.org> <95138258-4c6b-92f4-fc56-45a4618edc8d@selasky.org> <202110051146.195BklYI092330@kx.truefc.org> <0b1ded5a-cfc8-1c2e-7920-eac257332298@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 5, 2021 at 4:53 PM Hans Petter Selasky wrote:
>
> On 10/5/21 1:46 PM, KIRIYAMA Kazuhiko wrote:
> > root@kx:~ # env AUDIORECDEVICE=3D"/dev/dsp4.0" service sndiod restart
> > Stopping sndiod.
> > Waiting for PIDS: 89901.
> > Starting sndiod.
> > root@kx:~ # ll /dev/dsp*
> > crw-rw-rw-  1 root  wheel  0x10d 10=E6=9C=88  5 10:46 /dev/dsp0.0
> > crw-rw-rw-  1 root  wheel   0xa7  9=E6=9C=88 17 20:28 /dev/dsp1.0
> > crw-rw-rw-  1 root  wheel   0xa9  9=E6=9C=88 17 20:28 /dev/dsp2.0
> > crw-rw-rw-  1 root  wheel  0x111 10=E6=9C=88  5 20:35 /dev/dsp5.0
> > root@kx:~ #
>
> Hi,
> I wonder if you need to start an application which use sndiod for audio,
> before it will open /dev/dsp4.0

There is no need to run system wide sndiod if you just want to run
local user application Chrome will launch it as user process for the
time it runs.. very similar to PulseAudio :-)

My ~/.profile contains user wide configuration for rsnd/3 is the
/dev/dsp3 and reminder how to change Mic to /dev/dsp3 (that is rsnd/3)
and Speaker to /dev/dsp4 (that is rsnd/4):
export AUDIODEVICE=3D"rsnd/3"
#export AUDIOPLAYDEVICE=3D"rsnd/4"
#export AUDIORECDEVICE=3D"rsnd/3"

/dev/dsp3 is USB Audio Headphones, sndio name is rsnd/3.
/dev/dsp4 is USB Audio Card / Speakers, sndio name is rsnd/4.

Above configuration is generic one. Still it is possible to use
different device for microphone and speaker, but you need to:
1. start terminal.
2. export environment variables sndio config.
3. start chromium from that terminal so it gets the env config.

By default sndio uses rsnd/0 that is HDMI in/out for me. rsnd/1 is the
build in microphone, rsnd/2 is the build-in laptop speakers, rsnd/3 is
the USB Headset, rsnd/4 is the USB Audio Card (SoundBlaster).

Usually setting `export AUDIODEVICE=3D"rsnd/3"` is fine as system
default to have audio unput/output on usb headset.

Sometimes I need to switch to built in microphone (`rsnd/2`) and
external usb audio loudspeakers (`rsnd/4`) that can be done by
exporting variables in dedicated terminal then starting chrome from
that terminal.

PulseAudio allows to switch input/output on the fly during application
run when the meeting takes place this is why I prefer PulseAudio.

Hope that helps :-)
Tomek


--=20
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM8r67Drhk5MHnX5TeSp8GfcHiRM7rmXZ6hE0AXwOn_YQw0NQQ>