Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Daemon config file for PipeWire version "0.3.26" #
- context.properties = {
- ## Configure properties in the system.
- #
- # An empty configuration uses the PipeWire defaults.
- #
- # Configure properties in the system.
- # support.dbus = true
- # support.option-parser = true
- # support.loop-destroy = true
- # link.max-buffers = 64
- # log.level = 2
- # default.clock.rate = 48000
- # default.clock.allowed-rates = [ 48000 ]
- # default.clock.quantum = 1024
- # default.clock.min-quantum = 32
- # default.clock.max-quantum = 8192
- # default.video.width = 640
- # default.video.height = 480
- # default.video.rate.num = 25
- # default.video.rate.denom = 1
- # default.clock.quantum-limit = 8192
- log.level = 2
- core.daemon = true
- core.name = pipewire-0
- # Memfd support is disabled on some systems like older android gan
- # be disabled here.
- #
- support.memfd = true
- # Allow PipeWire to use the system RTKit service to boost the data thread priority.
- # This is generally recommended, but PipeWire clients can't handle more
- #mem.warn-mlock =
- #mem.allow-mlock =
- #mem.mlock-all = false
- #vm.overrides = {
- # default.clock.min-quantum = 1024
- #}
- default.clock.rate = 96000
- default.clock.allowed-rates = [ 192000 96000 48000 44100 32040 ]
- default.clock.quantum = 64
- default.clock.min-quantum = 32
- default.clock.max-quantum = 1024
- default.audio.rate = 96000
- default.audio.format = "F32"
- default.audio.position = [ FL FR FC LFE RL RR ]
- vm.overrides = {
- default.clock.min-quantum = 1024
- }
- # These overrides are only applied when running in a vm.
- #vm.overrides = {
- # default.clock.rate = 48000
- # default.clock.min-quantum = 1024
- #}
- # Settings for the DSP configuration.
- #dsp.lib = [
- # { path = support/libspa-dsp-float.so }
- # { path = support/libspa-dsp-fixed.so }
- #]
- # Paths where to look for spa factory libraries
- # plugins = [ ${LIBDIR}/spa-0.2 ]
- # spa-libs = {
- # audio.convert.* = audio/libspa-audioconvert
- # support.* = support/libspa-support
- # }
- # Paths where to look for pw module libraries
- #modules = [ ${LIBDIR}/pipewire-0.3 ]
- #jack.library = libjack.so.0
- #remote.name = pipewire-0
- }
- context.spa-libs = {
- #<factory-name regex> = <library-name>
- audio.convert.* = audioconvert/libspa-audioconvert
- audio.* = audio/libspa-audio
- avb.* = avb/libspa-avb
- api.alsa.* = alsa/libspa-alsa
- api.v4l2.* = v4l2/libspa-v4l2
- api.libcamera.* = libcamera/libspa-libcamera
- api.bluez5.* = bluez5/libspa-bluez5
- api.vulkan.* = vulkan/libspa-vulkan
- api.jack.* = jack/libspa-jack
- api.gl.* = spa/libspa-gl
- api.lv2.* = lv2/libspa-lv2
- api.egl.* = egl/libspa-egl
- api.vulkan.* = vulkan/libspa-vulkan
- support.* = support/libspa-support
- video.convert.* = videoconvert/libspa-videoconvert
- video.filter.* = videofilter/libspa-videofilter
- }
- context.modules = [
- #{ name = libpipewire-module-rt
- # args = {
- # #rt.prio = 88
- # #rt.time.soft = -1
- # #rt.time.hard = -1
- # }
- # flags = [ ifexists nofail ]
- #}
- { name = libpipewire-module-rtkit
- args = {
- #nice.level = -11
- #rt.prio = 88
- #rt.time.soft = 2000000
- #rt.time.hard = 2000000
- }
- flags = [ ifexists nofail ]
- }
- #{ name = libpipewire-module-profiling
- # args = {
- # #filename = "pipewire-profile.log"
- # }
- #}
- { name = libpipewire-module-protocol-native }
- { name = libpipewire-module-profiler }
- { name = libpipewire-module-metadata }
- { name = libpipewire-module-spa-device-factory }
- { name = libpipewire-module-spa-node-factory }
- { name = libpipewire-module-client-node }
- { name = libpipewire-module-client-device }
- # The portal module monitors the PID of the pipewire media-session.
- # It keeps a client for the session manager and tags it as the
- # default. The default session manager is then started.
- { name = libpipewire-module-portal
- args = {
- #monitoring.session-manager = true
- media-session.process.binary = "/usr/bin/pipewire-media-session"
- #media-session.process.env = []
- #media-session.process.args = []
- #media-session.process.spawn-flags = [ interactive ]
- }
- flags = [ ifexists nofail ]
- }
- # Use the realtime kit to boost the data thread priority.
- # This is recommended but PipeWire clients can't handle more.
- { name = libpipewire-module-access
- args = {
- #acl = [
- # { path = "/dev/snd/*" access = "rw" }
- # { path = "/dev/dri/*" access = "rw" }
- # { path = "/dev/video*" access = "rw" }
- # { path = "/dev/v4l-subdev*" access = "rw" }
- # { path = "/dev/media*" access = "rw" }
- #]
- #media.role = "none"
- }
- }
- { name = libpipewire-module-adapter }
- { name = libpipewire-module-link-factory }
- { name = libpipewire-module-session-manager }
- ]
- context.objects = [
- #{
- # factory = spa-node-factory
- # args = {
- # factory.name = support.null-audio-sink
- # node.name = "Dummy-Driver"
- # node.nick = "Dummy-Driver"
- # node.description = "Dummy-Driver"
- # priority.driver = 8000
- # media.class = "Audio/Sink"
- # audio.channels = 2
- # audio.position = [ FL FR ]
- # }
- #}
- {
- factory = spa-node-factory
- args = {
- factory.name = support.node.driver
- node.name = Dummy-Driver
- priority.driver = 8000
- }
- }
- ]
- # Sessions can be more complicated and can also include background
- # daemons of PipeWire components. All this can be configured in this
- # config file.
- session.spa-libs = {
- }
- session.modules = [
- { name = libpipewire-module-rtkit
- args = {
- nice.level = -11
- rt.prio = 88
- rt.time.soft = 2000000
- rt.time.hard = 2000000
- }
- }
- { name = libpipewire-module-loopback
- args = {
- node.name = "loopback-node"
- # capture.props = {
- # node.latency = 4096/48000
- # }
- # playback.props = {
- # node.passive = true
- # }
- }
- flags = [ ifexists nofail ]
- }
- { name = libpipewire-module-filter-chain
- args = {
- node.description = "Mic Filter"
- media.name = "Mic Filter"
- filter.graph = {
- nodes = [
- {
- type = builtin
- name = "eq"
- plugin = "lsp-plugins-lv2"
- label = "http://lsp-plug.in/plugins/lv2/para_equalizer_x16_lr"
- control = {
- "500/enable" = 1.0
- "500/freq" = 80.0
- "500/q" = 0.7
- "500/gain" = -3.0
- }
- }
- ]
- }
- capture.props = {
- node.name = "mic-capture"
- media.class = "Audio/Source"
- audio.format = "F32"
- audio.rate = 48000
- audio.channels = 2
- audio.position = [ FL FR ]
- }
- playback.props = {
- node.name = "mic-playback"
- media.class = "Audio/Sink"
- audio.format = "F32"
- audio.rate = 48000
- audio.channels = 2
- audio.position = [ FL FR ]
- }
- }
- flags = [ ifexists nofail ]
- }
- { name = libpipewire-module-filter-chain
- args = {
- node.description = "System Equalizer"
- media.name = "System Equalizer"
- filter.graph = {
- nodes = [
- {
- type = builtin
- name = "eq"
- plugin = "lsp-plugins-lv2"
- label = "http://lsp-plug.in/plugins/lv2/para_equalizer_x16_lr"
- control = {
- "0/enable" = 1.0
- "0/freq" = 60.0
- "0/q" = 0.7
- "0/gain" = 3.0
- "1/enable" = 1.0
- "1/freq" = 120.0
- "1/q" = 0.7
- "1/gain" = 2.0
- "2/enable" = 1.0
- "2/freq" = 250.0
- "2/q" = 0.7
- "2/gain" = -1.0
- "3/enable" = 1.0
- "3/freq" = 500.0
- "3/q" = 0.7
- "3/gain" = -2.0
- "4/enable" = 1.0
- "4/freq" = 1000.0
- "4/q" = 0.7
- "4/gain" = -1.0
- "5/enable" = 1.0
- "5/freq" = 2000.0
- "5/q" = 0.7
- "5/gain" = -2.0
- "6/enable" = 1.0
- "6/freq" = 4000.0
- "6/q" = 0.7
- "6/gain" = 3.0
- "7/enable" = 1.0
- "7/freq" = 8000.0
- "7/q" = 0.7
- "7/gain" = 4.0
- }
- }
- ]
- }
- capture.props = {
- node.name = "system-capture"
- media.class = "Audio/Source"
- audio.format = "F32"
- audio.rate = 48000
- audio.channels = 2
- audio.position = [ FL FR ]
- }
- playback.props = {
- node.name = "system-playback"
- media.class = "Audio/Sink"
- audio.format = "F32"
- audio.rate = 48000
- audio.channels = 2
- audio.position = [ FL FR ]
- }
- }
- flags = [ ifexists nofail ]
- }
- ]
- # EOF
Advertisement
Add Comment
Please, Sign In to add comment