Good day everybody,
Today I was able to connect my WiiU to my computer using a PCI TV Tuner with a RCA input, only yellow. Thanks to VLC and video4linux I can play games flawlessly. I bought a cable adapter to connect the red and white wires, from the RCA, to the microphone input. Then I run this command in order to hear audio:
pactl load-module module-loopback latency_msec=1
And run VLC:
vlc -vvv v4l2:// --v4l2-dev=/dev/video1 --v4l2-input=1 --v4l2-chroma=YUY2 --v4l2-width=720 --v4l2-height=576 --v4l2-aspect-ratio=16\:9 --v4l2-fps=25 --live-caching=1 --aspect-ratio 16\:9
Once I finish playing, I run this to disable Microphone listening:
pactl unload-module module-loopback
Now my problem is: I have a Logitech webcam with microphone connected via USB, and this is my default microphone, and I have to go to System Preferences > Sound > Input and change the sound input device to Rear Microphone. Can I do this by commands? Yes, I need to run this command to switch to Rear Microphone:
pacmd set-default-source alsa_input.pci-0000_00_1b.0.analog-stereo
And this one to switch back to webcam microphone:
pacmd set-default-source alsa_input.usb-046d_0823_0C629EC0-00-U0x46d0x823.iec958-stereo
I can see in input sources that the mic is switched, but the sound doesn't change, I keep listening the same sound source... if I do it by clicking on debian's preferences, it switches correctly. Am I missing something with those commands? And what will I need in order to switch the Rear Microphone to mono? (Commands or a forever configuration) I have followed these instructions https://wiki.archlinux.org/index.php/PulseAudio/Examples#Remap_stereo_to_mono but I ended with no sound.
Any help will be greatly appreciated.