Re: Hot to use speakers from one sound card an mic from another?

2021-05-02 Thread Sebastien Marie
On Sun, May 02, 2021 at 08:55:27AM +0200, Federico Giannici wrote:
> SHORT VERSION: How can I make Chromium to use the speakers from the internal
> soundcard and the the microphone from an USB card?

You could do what you want with AUDIORECDEVICE environment variable
(see sndio(4) man page).

$ doas sysctl kern.audio.record=1
$ export AUDIORECDEVICE=snd/1
$ chrome

it will makes libsndio to open 'snd/1' device for recording and open
'default' (usually 'snd/0') for playing.

Please note that it is working for chromium as it is opening two
devices: one for recording and another for playing. A program which is
opening ONE device for playing AND recording couldn't work with this
trick (like firefox for example).

Thanks.
-- 
Sebastien Marie



Re: Hot to use speakers from one sound card an mic from another?

2021-05-02 Thread Erling Westenvik
On Sun, May 02, 2021 at 08:55:27AM +0200, Federico Giannici wrote:
> SHORT VERSION: How can I make Chromium to use the speakers from the internal
> soundcard and the the microphone from an USB card?

According to this thread on @misc from 2020, you cannot. Not yet at
least. See the answers from Alexandre Ratchov.

http://openbsd-archive.7691.n7.nabble.com/Using-a-C310-Logitech-webcam-mic-with-internal-speakers-td388783.html

Erling

> LONG VERSION:
> I'd like to use my OpenBSD 6.9 amd64 PC for videoconferencing using Google
> Meets in Chromium. The problem is that I have the speakers connected to the
> internal motherboard's soundcard, while the microphone is in an USB card
> (the webcam).
> 
> This second card connect as audio1:
> 
> uaudio0 at uhub0 port 1 configuration 1 interface 3 "Logitech Webcam C310"
> rev 2.00/0.12 addr 2
> uaudio0: class v1, high-speed, sync, channels: 0 play, 1 rec, 2 ctls
> audio1 at uaudio0
> 
> I was able to make Chromium use that second card (with "rcctl set sndiod
> flags -f rsnd/0 -F rsnd/1"), and in this way the microphone works, but than
> I cannot hear anyting!
> 
> So, how can I make Chromium (or any other program in the PC) use the
> speakers from one card  and the microphone from another one?
> 
> Thanks.



Hot to use speakers from one sound card an mic from another?

2021-05-02 Thread Federico Giannici
SHORT VERSION: How can I make Chromium to use the speakers from the 
internal soundcard and the the microphone from an USB card?



LONG VERSION:
I'd like to use my OpenBSD 6.9 amd64 PC for videoconferencing using 
Google Meets in Chromium. The problem is that I have the speakers 
connected to the internal motherboard's soundcard, while the microphone 
is in an USB card (the webcam).


This second card connect as audio1:

uaudio0 at uhub0 port 1 configuration 1 interface 3 "Logitech Webcam 
C310" rev 2.00/0.12 addr 2

uaudio0: class v1, high-speed, sync, channels: 0 play, 1 rec, 2 ctls
audio1 at uaudio0

I was able to make Chromium use that second card (with "rcctl set sndiod 
flags -f rsnd/0 -F rsnd/1"), and in this way the microphone works, but 
than I cannot hear anyting!


So, how can I make Chromium (or any other program in the PC) use the 
speakers from one card  and the microphone from another one?


Thanks.