module-loopback no sound when targeting the default output
I'm trying to configure a loopback between my microphone and headset. I was previously using :
pw-loopback -C alsa_input.usb-BIRD_UM1_BIRD_UM1-00.pro-input-0 -P alsa_output.pci-0000_00_1b.0.analog-stereo -l 20
I now want to use a pipewire.conf. so I got :
{ name = libpipewire-module-loopback
args = {
audio.position = [ FL ]
capture.props = {
node.name = mic_sink
node.description = "Microphone Loopback"
node.latency = 960/48000
node.target = "alsa_input.usb-BIRD_UM1_BIRD_UM1-00.pro-input-0"
}
playback.props = {
node.name = mic_sink
node.description = "Microphone Loopback"
node.latency = 960/48000
# node.target = "alsa_output.pci-0000_00_1b.0.analog-stereo"
}
}
}
My issue is the last node.target
that cause problems. Without it, pipewire seems to hand and finally fallback to the default sink (this one). But I really want to enforce this output and so, uncomment this line. If I do so, then the output is automatically used but not sound can be hear. I have to toggle the target back and forth in pavucontrol to actually hear things.
Here's the log with this line commented :
[E][28776.225961] mod.loopback | [module-loopback.: 308 core_error()] error id:3 seq:13 res:-2 (No such file or directory): no node available
[E][28776.244127] mod.loopback | [module-loopback.: 308 core_error()] error id:3 seq:13 res:-2 (No such file or directory): no node available
[E][28776.244138] mod.loopback | [module-loopback.: 308 core_error()] error id:3 seq:13 res:-2 (No such file or directory): no node available
[E][28776.249387] mod.loopback | [module-loopback.: 308 core_error()] error id:3 seq:13 res:-2 (No such file or directory): no node available
[E][28776.249403] mod.loopback | [module-loopback.: 308 core_error()] error id:3 seq:13 res:-2 (No such file or directory): no node available
[E][28776.250211] mod.loopback | [module-loopback.: 308 core_error()] error id:3 seq:13 res:-2 (No such file or directory): no node available
[E][28776.250929] mod.loopback | [module-loopback.: 308 core_error()] error id:3 seq:13 res:-2 (No such file or directory): no node available
[E][28776.251334] mod.loopback | [module-loopback.: 308 core_error()] error id:3 seq:13 res:-2 (No such file or directory): no node available
Maybe this target is not correctly setup fast enough ?