Skip to content

Instantly share code, notes, and snippets.

@varesa
Created April 17, 2025 12:45
Show Gist options
  • Save varesa/4b9499bf68b9466677566fcaefec662f to your computer and use it in GitHub Desktop.
Save varesa/4b9499bf68b9466677566fcaefec662f to your computer and use it in GitHub Desktop.
streamserver@streamserver1:~$ cat .config/pipewire/pipewire.conf.d/custom.conf
#
# Sources
#
context.modules = [
{
name = libpipewire-module-roc-source
args = {
local.ip = 0.0.0.0
resampler.profile = low
sess.latency.msec = 2000
local.source.port = 10001
local.repair.port = 20001
source.name = "roc-streamer3"
source.props = {
node.target = "input1"
}
}
}
{
name = libpipewire-module-roc-source
args = {
local.ip = 0.0.0.0
resampler.profile = low
sess.latency.msec = 2000
local.source.port = 10002
local.repair.port = 20002
source.name = "roc-streamer4"
source.props = {
node.target = "input2"
}
}
}
]
#
# virtual nodes
#
context.objects = [
{ factory = adapter
args = {
factory.name = support.null-audio-sink
node.name = "input1"
node.target = "broadcast"
media.class = "Audio/Duplex"
audio.position = [ FL FR ]
adapter.auto-port-config = {
mode = dsp
monitor = true
position = preserve
}
}
}
{ factory = adapter
args = {
factory.name = support.null-audio-sink
node.name = "input2"
node.target = "broadcast"
media.class = "Audio/Duplex"
audio.position = [ FL FR ]
adapter.auto-port-config = {
mode = dsp
monitor = true
position = preserve
}
}
}
{ factory = adapter
args = {
factory.name = support.null-audio-sink
node.name = "broadcast"
media.class = "Audio/Duplex"
audio.position = [ FL FR ]
adapter.auto-port-config = {
mode = dsp
monitor = true
position = preserve
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment