I have made changes to my system to accommodate my specific needs using stuff I’ve found on forums and somehow got it all to work, without really understanding HOW it works.
What it does is it creates an audio loopback output for streaming. It works perfectly, but what I am wanting (hoping) to do is to ALSO send audio to the analog output (the 3.5mm jack). It would eliminate the need for a second machine, which would be so helpful.
To get it working, I had to, as root:
nano ~/.asoundrc
And add this:
pcm.multi {
type plug
slave.pcm {
type route;
slave.pcm {
type multi;
slaves.a.pcm "output";
slaves.b.pcm "loopin";
slaves.a.channels 2;
slaves.b.channels 2;
bindings.0.slave a;
bindings.0.channel 0;
bindings.1.slave a;
bindings.1.channel 1;
bindings.2.slave b;
bindings.2.channel 0;
bindings.3.slave b;
bindings.3.channel 1;
}
ttable.0.0 1;
ttable.1.1 1;
ttable.0.2 1;
ttable.1.3 1;
}
}
pcm.!default {
type plug
slave.pcm "multi"
}
pcm.output {
type plug
slave.pcm "hw:0,1"
}
pcm.loopin {
type plug
slave.pcm "plughw:Loopback,0,0"
}
pcm.loopout {
type plug
slave.pcm "plughw:Loopback,1,0"
}
That gives me ALSA: Loopback(loopin), LOOPBACK PCM for streaming.
Is there something I can add to this (or somewhere else) that will also pipe the audio to the 3.5mm jack? I could make HDMI audio work if it's easier.
This is the output of aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
Subdevices: 7/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
Subdevices: 7/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0