You are not logged in.
I'm trying to combine 2 sound cards(onboard and usb soundbar) as a virtual device, but seems that the config file doesn't used.
I searched about it and I found a pipewire example which I configured it and put it to ~/.config/wireplumber/wireplumber.conf.d/combined-cards.conf.
These are the file contents:
context.modules = [
{ name = libpipewire-module-combine-stream
args = {
combine.mode = source
node.name = "combine_source_4_0"
node.description = "My 4.0 Combine Source"
combine.latency-compensate = false
combine.props = {
audio.position = [ FL FR SL SR ]
}
stream.props = {
stream.dont-remix = true
}
stream.rules = [
{ matches = [
{ media.class = "Audio/Source"
node.name = "alsa_card.usb-Creative_Technology_Ltd_Sound_Blaster_GS3_1120041A00040504-01"
} ]
actions = { create-stream = {
audio.position = [ FL FR ]
combine.audio.position = [ FL FR ]
} } }
{ matches = [
{ media.class = "Audio/Source"
node.name = "alsa_card.pci-0000_0a_00.4"
} ]
actions = { create-stream = {
audio.position = [ FL FR ]
combine.audio.position = [ SL SR ]
} } }
]
}
}
]
With this I expected to created a virtual device but there is nothing in pavucontrol. I restarted the wireplumber service and also tried to logout/re-login, but I cannot see the virtual device, so I suppose that the config file doesn't load.
Last edited by zaxdan69 (2025-06-10 07:30:48)
Offline
W/o any close look: your system is up-to-date?
https://bbs.archlinux.org/viewtopic.php … 9#p2245159
Offline
Yes, latest update today before tried to configure the cards.
Offline
After a lot of search and trial and error I found a solution. At first, the soundbar doesn't have an input and I couldn't use source. I changed it to Sink and also I needed to use RL and RR instead of SL SR, to work and play sound both speakers. Also I used pipewire.conf.d instead of wireplumber because with wireplumber.conf.d the combine sink didn't created at all.
Here is my working conf file:
context.modules = [
{
name = libpipewire-module-combine-stream
args = {
combine.mode = sink
node.name = "combined-sink"
node.description = "My 4.0 Combined Sink"
combine.props = {
audio.position = [ FL FR SL SR ]
}
stream.props = {
stream.dont-remix = true
}
stream.rules = [
{
matches = [
{
media.class = "Audio/Sink"
node.name = "alsa_output.usb-Creative_Technology_Ltd_Sound_Blaster_GS3_1120041A00040504-01.analog-stereo"
}
]
actions = {
create-stream = {
audio.position = [ FL FR ]
combine.audio.position = [ FL FR ]
}
}
},
{
matches = [
{
media.class = "Audio/Sink"
node.name = "alsa_output.pci-0000_0a_00.4.analog-stereo"
}
]
actions = {
create-stream = {
audio.position = [ FL FR ]
combine.audio.position = [ RL RR ]
}
}
}
]
}
}
]
Offline