2021-02-11 21:01:58 +01:00
|
|
|
# PulseAudio config file for PipeWire version @VERSION@ #
|
2021-06-02 15:22:49 +02:00
|
|
|
#
|
2021-09-20 18:00:27 +03:00
|
|
|
# Copy and edit this file in @PIPEWIRE_CONFIG_DIR@ for system-wide changes
|
2021-06-02 15:22:49 +02:00
|
|
|
# or in ~/.config/pipewire for local changes.
|
2021-04-12 14:54:02 +00:00
|
|
|
|
2021-02-11 21:01:58 +01:00
|
|
|
context.properties = {
|
2021-02-10 19:57:35 +01:00
|
|
|
## Configure properties in the system.
|
2021-02-13 21:11:35 +02:00
|
|
|
#mem.warn-mlock = false
|
|
|
|
|
#mem.allow-mlock = true
|
|
|
|
|
#mem.mlock-all = false
|
|
|
|
|
#log.level = 2
|
2021-02-10 19:57:35 +01:00
|
|
|
}
|
|
|
|
|
|
2021-02-11 21:01:58 +01:00
|
|
|
context.spa-libs = {
|
2021-02-13 20:38:02 +01:00
|
|
|
audio.convert.* = audioconvert/libspa-audioconvert
|
|
|
|
|
support.* = support/libspa-support
|
2021-02-10 19:57:35 +01:00
|
|
|
}
|
|
|
|
|
|
2021-03-12 12:39:58 +01:00
|
|
|
context.modules = [
|
2021-09-20 18:00:27 +03:00
|
|
|
{ name = libpipewire-module-rtkit
|
2021-02-10 19:57:35 +01:00
|
|
|
args = {
|
2021-02-13 21:11:35 +02:00
|
|
|
#nice.level = -11
|
2021-03-03 19:56:22 +01:00
|
|
|
#rt.prio = 88
|
2021-07-04 21:57:54 +02:00
|
|
|
#rt.time.soft = 2000000
|
|
|
|
|
#rt.time.hard = 2000000
|
2021-02-13 21:11:35 +02:00
|
|
|
}
|
2021-02-10 19:57:35 +01:00
|
|
|
flags = [ ifexists nofail ]
|
|
|
|
|
}
|
2021-09-20 18:00:27 +03:00
|
|
|
{ name = libpipewire-module-protocol-native }
|
|
|
|
|
{ name = libpipewire-module-client-node }
|
|
|
|
|
{ name = libpipewire-module-adapter }
|
|
|
|
|
{ name = libpipewire-module-metadata }
|
2021-02-13 21:11:35 +02:00
|
|
|
|
2021-09-20 18:00:27 +03:00
|
|
|
{ name = libpipewire-module-protocol-pulse
|
2021-02-11 21:01:58 +01:00
|
|
|
args = {
|
2021-09-20 18:00:27 +03:00
|
|
|
# the addresses this server listens on
|
2021-02-13 21:11:35 +02:00
|
|
|
server.address = [
|
|
|
|
|
"unix:native"
|
2021-09-20 18:00:27 +03:00
|
|
|
#"unix:/tmp/something" # absolute paths may be used
|
|
|
|
|
#"tcp:4713" # IPv4 and IPv6 on all addresses
|
|
|
|
|
#"tcp:[::]:9999" # IPv6 on all addresses
|
|
|
|
|
#"tcp:127.0.0.1:8888" # IPv4 on a single address
|
2021-02-13 21:11:35 +02:00
|
|
|
]
|
2021-09-20 18:00:27 +03:00
|
|
|
#pulse.min.req = 256/48000 # 5ms
|
|
|
|
|
#pulse.default.req = 960/48000 # 20 milliseconds
|
|
|
|
|
#pulse.min.frag = 256/48000 # 5ms
|
|
|
|
|
#pulse.default.frag = 96000/48000 # 2 seconds
|
|
|
|
|
#pulse.default.tlength = 96000/48000 # 2 seconds
|
|
|
|
|
#pulse.min.quantum = 256/48000 # 5ms
|
|
|
|
|
#pulse.default.format = F32
|
|
|
|
|
#pulse.default.position = [ FL FR ]
|
2021-04-21 15:58:30 +02:00
|
|
|
# These overrides are only applied when running in a vm.
|
|
|
|
|
vm.overrides = {
|
2021-09-20 18:00:27 +03:00
|
|
|
pulse.min.quantum = 1024/48000 # 22ms
|
2021-04-21 15:58:30 +02:00
|
|
|
}
|
2021-02-13 21:11:35 +02:00
|
|
|
}
|
2021-02-11 21:01:58 +01:00
|
|
|
}
|
2021-03-12 12:39:58 +01:00
|
|
|
]
|
2021-02-20 21:06:47 +01:00
|
|
|
|
2021-08-17 20:31:47 +02:00
|
|
|
# Extra modules can be loaded here. Setup in default.pa can be moved here
|
|
|
|
|
context.exec = [
|
2021-12-13 09:35:04 +01:00
|
|
|
#{ path = "pactl" args = "load-module module-switch-on-connect" }
|
2021-08-17 20:31:47 +02:00
|
|
|
#{ path = "/usr/bin/sh" args = "~/.config/pipewire/default.pw" }
|
|
|
|
|
]
|
|
|
|
|
|
2021-02-20 21:06:47 +01:00
|
|
|
stream.properties = {
|
2021-09-20 18:00:27 +03:00
|
|
|
#node.latency = 1024/48000
|
|
|
|
|
#node.autoconnect = true
|
|
|
|
|
#resample.quality = 4
|
|
|
|
|
#channelmix.normalize = false
|
|
|
|
|
#channelmix.mix-lfe = false
|
|
|
|
|
#channelmix.upmix = false
|
2021-03-17 11:09:19 +01:00
|
|
|
#channelmix.lfe-cutoff = 0
|
2021-02-20 21:06:47 +01:00
|
|
|
}
|