filter-chain: reformat configuration

This commit is contained in:
Haochen Tong 2021-06-15 20:11:33 +08:00
parent 4be1981f54
commit 18ef422f3f
No known key found for this signature in database
GPG key ID: D70E8B08E0BC48DF
5 changed files with 132 additions and 132 deletions

View file

@ -44,57 +44,57 @@ context.modules = [
{ name = libpipewire-module-filter-chain { name = libpipewire-module-filter-chain
args = { args = {
#audio.format = F32 #audio.format = F32
#audio.rate = 48000 #audio.rate = 48000
audio.channels = 2 audio.channels = 2
#audio.position = [ FL FR ] #audio.position = [ FL FR ]
node.name = "filter-chain-demonic" node.name = "filter-chain-demonic"
node.description = "Demonic example" node.description = "Demonic example"
media.name = "Demonic example" media.name = "Demonic example"
filter.graph = { filter.graph = {
nodes = [ nodes = [
{ {
name = rev name = rev
type = ladspa type = ladspa
plugin = revdelay_1605 plugin = revdelay_1605
label = revdelay label = revdelay
control = { control = {
"Delay Time (s)" = 2.0 "Delay Time (s)" = 2.0
} }
} }
{ {
name = pitch name = pitch
type = ladspa type = ladspa
plugin = am_pitchshift_1433 plugin = am_pitchshift_1433
label = amPitchshift label = amPitchshift
control = { control = {
"Pitch shift" = 0.6 "Pitch shift" = 0.6
} }
} }
{ {
name = rev2 name = rev2
type = ladspa type = ladspa
plugin = g2reverb plugin = g2reverb
label = G2reverb label = G2reverb
control = { control = {
"Reverb tail" = 0.5 "Reverb tail" = 0.5
"Damping" = 0.9 "Damping" = 0.9
} }
} }
] ]
links = [ links = [
{ output = "rev:Output" input = "pitch:Input" } { output = "rev:Output" input = "pitch:Input" }
{ output = "pitch:Output" input = "rev2:In L" } { output = "pitch:Output" input = "rev2:In L" }
] ]
inputs = [ "rev:Input" ] inputs = [ "rev:Input" ]
outputs = [ "rev2:Out L" ] outputs = [ "rev2:Out L" ]
} }
capture.props = { capture.props = {
#media.class = Audio/Sink #media.class = Audio/Sink
} }
playback.props = { playback.props = {
#media.class = Audio/Source #media.class = Audio/Source
} }
} }
} }
] ]

View file

@ -27,9 +27,9 @@ context.modules = [
{ name = libpipewire-module-filter-chain { name = libpipewire-module-filter-chain
args = { args = {
node.name = "effect_output.dolby_surround" node.name = "effect_output.dolby_surround"
node.description = "Dolby Surround Sink" node.description = "Dolby Surround Sink"
media.name = "Dolby Surround Sink" media.name = "Dolby Surround Sink"
filter.graph = { filter.graph = {
nodes = [ nodes = [
{ {
@ -41,26 +41,26 @@ context.modules = [
{ {
type = ladspa type = ladspa
name = enc name = enc
plugin = surround_encoder_1401 plugin = surround_encoder_1401
label = surroundEncoder label = surroundEncoder
} }
] ]
links = [ links = [
{ output = "mixer:Out" input = "enc:S" } { output = "mixer:Out" input = "enc:S" }
] ]
inputs = [ "enc:L" "enc:R" "enc:C" null "mixer:In 1" "mixer:In 2" ] inputs = [ "enc:L" "enc:R" "enc:C" null "mixer:In 1" "mixer:In 2" ]
outputs = [ "enc:Lt" "enc:Rt" ] outputs = [ "enc:Lt" "enc:Rt" ]
} }
capture.props = { capture.props = {
media.class = Audio/Sink media.class = Audio/Sink
audio.channels = 6 audio.channels = 6
audio.position = [ FL FR FC LFE SL SR ] audio.position = [ FL FR FC LFE SL SR ]
} }
playback.props = { playback.props = {
node.passive = true node.passive = true
audio.channels = 2 audio.channels = 2
audio.position = [ FL FR ] audio.position = [ FL FR ]
} }
} }
} }
] ]

View file

@ -69,20 +69,20 @@ context.modules = [
control = { "Freq" = 5000.0 "Q" = 1.0 "Gain" = 0.0 } control = { "Freq" = 5000.0 "Q" = 1.0 "Gain" = 0.0 }
} }
] ]
links = [ links = [
{ output = "eq_band_1:Out" input = "eq_band_2:In" } { output = "eq_band_1:Out" input = "eq_band_2:In" }
{ output = "eq_band_2:Out" input = "eq_band_3:In" } { output = "eq_band_2:Out" input = "eq_band_3:In" }
{ output = "eq_band_3:Out" input = "eq_band_4:In" } { output = "eq_band_3:Out" input = "eq_band_4:In" }
{ output = "eq_band_4:Out" input = "eq_band_5:In" } { output = "eq_band_4:Out" input = "eq_band_5:In" }
{ output = "eq_band_5:Out" input = "eq_band_6:In" } { output = "eq_band_5:Out" input = "eq_band_6:In" }
] ]
} }
capture.props = { capture.props = {
media.class = Audio/Sink media.class = Audio/Sink
} }
playback.props = { playback.props = {
node.passive = true node.passive = true
} }
} }
} }
] ]

View file

@ -4,59 +4,59 @@
# ( Jean-Philippe Guillemin <hyp3ri0n@sfr.fr> ) # ( Jean-Philippe Guillemin <hyp3ri0n@sfr.fr> )
context.properties = { context.properties = {
log.level = 0 log.level = 0
} }
context.spa-libs = { context.spa-libs = {
audio.convert.* = audioconvert/libspa-audioconvert audio.convert.* = audioconvert/libspa-audioconvert
support.* = support/libspa-support support.* = support/libspa-support
} }
context.modules = [ context.modules = [
{ name = libpipewire-module-rtkit { name = libpipewire-module-rtkit
args = { args = {
#nice.level = -11 #nice.level = -11
#rt.prio = 88 #rt.prio = 88
#rt.time.soft = 200000 #rt.time.soft = 200000
#rt.time.hard = 200000 #rt.time.hard = 200000
} }
flags = [ ifexists nofail ] flags = [ ifexists nofail ]
} }
{ name = libpipewire-module-protocol-native } { name = libpipewire-module-protocol-native }
{ name = libpipewire-module-client-node } { name = libpipewire-module-client-node }
{ name = libpipewire-module-adapter } { name = libpipewire-module-adapter }
{ name = libpipewire-module-filter-chain { name = libpipewire-module-filter-chain
args = { args = {
node.name = "effect_output.matrix_spatialiser" node.name = "effect_output.matrix_spatialiser"
node.description = "Matrix Spatialiser" node.description = "Matrix Spatialiser"
media.name = "Matrix Spatialiser" media.name = "Matrix Spatialiser"
filter.graph = { filter.graph = {
nodes = [ nodes = [
{ {
type = ladspa type = ladspa
name = matrix name = matrix
plugin = matrix_spatialiser_1422 plugin = matrix_spatialiser_1422
label = matrixSpatialiser label = matrixSpatialiser
control = { control = {
"Width" = 80 "Width" = 80
} }
} }
] ]
inputs = [ "matrix:Input L" "matrix:Input R" ] inputs = [ "matrix:Input L" "matrix:Input R" ]
outputs = [ "matrix:Output L" "matrix:Output R" ] outputs = [ "matrix:Output L" "matrix:Output R" ]
} }
capture.props = { capture.props = {
media.class = Audio/Sink media.class = Audio/Sink
audio.channels = 2 audio.channels = 2
audio.position = [ FL FR ] audio.position = [ FL FR ]
} }
playback.props = { playback.props = {
# media.class = Audio/Source # media.class = Audio/Source
# node.passive = true # node.passive = true
audio.channels = 2 audio.channels = 2
audio.position = [ FL FR ] audio.position = [ FL FR ]
} }
} }
} }
] ]

View file

@ -27,9 +27,9 @@ context.modules = [
{ name = libpipewire-module-filter-chain { name = libpipewire-module-filter-chain
args = { args = {
node.name = "effect_input.rnnoise" node.name = "effect_input.rnnoise"
node.description = "Noise Canceling source" node.description = "Noise Canceling source"
media.name = "Noise Canceling source" media.name = "Noise Canceling source"
filter.graph = { filter.graph = {
nodes = [ nodes = [
{ {
@ -38,17 +38,17 @@ context.modules = [
plugin = librnnoise_ladspa plugin = librnnoise_ladspa
label = noise_suppressor_stereo label = noise_suppressor_stereo
control = { control = {
"VAD Threshold (%)" 50.0 "VAD Threshold (%)" 50.0
} }
} }
] ]
} }
capture.props = { capture.props = {
node.passive = true node.passive = true
} }
playback.props = { playback.props = {
media.class = Audio/Source media.class = Audio/Source
} }
} }
} }
] ]