On Sat, Mar 14, 2020 at 09:10:19AM +0100, David Demelier wrote: > Hello, > > I'm trying to setup sndiod to record input using my laptop's builtin > microphone but using an USB sound card for output. > > The microphone does work correctly because I was able to record some > test using aucat > > $ aucat -o test.wav > $ aucat -i test.wav (worked) > > To my understanding the option -m can be used to control either both > playback and recording so I've tried to setup my rsnd/0 (laptop) to only > use recording and my external dock rsnd/1 to only use playback. > > $ sndiod -f rsnd/1 -s default -m play -F rsnd/1 -f rsnd/0 -m rec > > The playback works correctly on the USB dock but plain `aucat -o` won't > record from the laptop's microphone. However, `aucat -f rsnd/0 -o > test.wav` works but since Firefox won't let me choose a specific input > device I'm stuck... > > Do I miss something or it's simply not possible to create this "virtual" > unique device that consist of input from a card and output to another > one?
Hi, Sorry, it's not possible to combine two devices into a single one with sndiod. FWIW, this is because both devices don't use the same clock source, if there were combined, audio could be unstable. Properly synchronizing them is difficult and given the price and availability of full-duplex hardware it is not worth the risk of making audio unreliable. I guess you're asking because the USB dock has no microphone, right?