I have several microphones:
> $ /usr/local/bin/openal-info
> Available playback devices:
> OSS Default
> Available capture devices:
> OSS Default
But chrome://settings/content/microphone simply offers a choice of "Open Sound System", and doesn't allow to choose a microphone.
This is a severe usability issue.
Firefox's behavior is much better. It offers the user to grant access to audio/video devices per-website when such access is required, with different audio/video devices being able to be chosen for individual websites.
Chromium uses ALSA by default, so you *should* see all audio devices configured in asound.conf.
(In reply to Matthias Wolf from comment #2)
My etc/asound.conf.sample and etc/asound.conf are identical.
> Chromium uses ALSA by default <...>
Does it support any other ways to access audio?
The default asound.conf only uses the default OSS device as far as I know. The other options would be sndio and pulseaudio as options in the port (disabled by default).
Unfortunately, we don't have a native OSS backend (yet).
(In reply to Yuri Victorovich from comment #0)
Look here, maybe the way is OK for you
Maybe the way should be documented in a more predictable/proper for chromium users place
sorry, the proper url is https://wiki.freebsd.org/Sound#For_Firefox.2FChrome_video_conferencing:_sndio_integration_for_userspace_programs
sndio option is now the default audio backend in chrome.
The new and upcoming version of sndio recognizes AUDIOPLAYDEVICE and AUDIORECDEVICE environment variables.
Calling chrome like this:
> AUDIOPLAYDEVICE=rsnd/2 AUDIORECDEVICE=rsnd/6 chrome
allows to choose both speaker and microphone OSS devices: /dev/audio2 and /dev/audio6.
Again, this is assuming that the SNDIO=ON (default) and audio/sndio is patched with the latest patches from https://github.com/ratchov/sndio
This solves the problem of selectability of audio devices, not in the runtime, but at least through environment variables.
(In reply to Andrey Khlebutin from comment #6)
https://wiki.freebsd.org/action/recall/Sound?action=recall&rev=84#For_Firefox.2FChrome_video_conferencing:_sndio_integration_for_userspace_programs ▶ now https://wiki.freebsd.org/Sound#Video_conferencing_.28via_browser.29