Can't create combined sink since native module-combine-stream was added in 0.3.65
As of 0.3.65 (with the patch to fix installation of module-combine-stream), I've been having difficulty trying to set up a combined sink. I'm still using pactl
commands to initialize it, so that might be part of the issue.
I'm using a combined sink to enable "sound board" functionality on Discord. The arrangement is as follows:
SPEAKERS_DEVICE="alsa_output.pci-0000_04_00.6.HiFi__hw_Generic_1__sink" MICROPHONE_DEVICE="alsa_input.pci-0000_04_00.6.HiFi__hw_acp6x__source"
- NULL sink, named DiscordSink: Discord's input is set to use this as its recording source.
- Combined Sink: Slave devices are set to SPEAKERS_DEVICE and DiscordSink, then sound effect programs have their outputs set to the combined sink. This allows sounds to be heard both locally and through Discord.
- Loopback: Loop the Microphone input to the Combined sink to allow the microphone to work.
Attempting to load the Combined Sink pauses for around 3 seconds, then fails:
pactl load-module module-combine-sink sink_name=CombinedSink object.linger=1 channels=2 media.class=Audio/Duplex slaves=DiscordSink,"${SPEAKERS_DEVICE}"
Failure: Input/Output error
This worked fine with PipeWire 0.3.64, prior to the "native" combine stream module.
Sidenote: pactl load-module module-combine-sink
with no slave devices specified loads correctly, but is rather useless.