mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
filter-chain: add example configs for spatializer
This commit is contained in:
parent
caf58ecffb
commit
d42656c0d9
2 changed files with 202 additions and 0 deletions
157
src/daemon/filter-chain/spatializer-7.1.conf
Normal file
157
src/daemon/filter-chain/spatializer-7.1.conf
Normal file
|
|
@ -0,0 +1,157 @@
|
||||||
|
# Headphone surround sink
|
||||||
|
#
|
||||||
|
# Copy this file into a conf.d/ directory such as
|
||||||
|
# ~/.config/pipewire/filter-chain.conf.d/
|
||||||
|
#
|
||||||
|
context.modules = [
|
||||||
|
{ name = libpipewire-module-filter-chain
|
||||||
|
args = {
|
||||||
|
node.description = "Spatial Sink"
|
||||||
|
media.name = "Spatial Sink"
|
||||||
|
filter.graph = {
|
||||||
|
nodes = [
|
||||||
|
{
|
||||||
|
type = sofa
|
||||||
|
label = spatializer
|
||||||
|
name = spFL
|
||||||
|
config = {
|
||||||
|
filename = "~/.config/hrtf-sofa/hrtf b_nh724.sofa"
|
||||||
|
}
|
||||||
|
control = {
|
||||||
|
"Azimuth" = 30.0
|
||||||
|
"Elevation" = 0.0
|
||||||
|
"Radius" = 3.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = sofa
|
||||||
|
label = spatializer
|
||||||
|
name = spFR
|
||||||
|
config = {
|
||||||
|
filename = "~/.config/hrtf-sofa/hrtf b_nh724.sofa"
|
||||||
|
}
|
||||||
|
control = {
|
||||||
|
"Azimuth" = 330.0
|
||||||
|
"Elevation" = 0.0
|
||||||
|
"Radius" = 3.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = sofa
|
||||||
|
label = spatializer
|
||||||
|
name = spFC
|
||||||
|
config = {
|
||||||
|
filename = "~/.config/hrtf-sofa/hrtf b_nh724.sofa"
|
||||||
|
}
|
||||||
|
control = {
|
||||||
|
"Azimuth" = 0.0
|
||||||
|
"Elevation" = 0.0
|
||||||
|
"Radius" = 3.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = sofa
|
||||||
|
label = spatializer
|
||||||
|
name = spRL
|
||||||
|
config = {
|
||||||
|
filename = "~/.config/hrtf-sofa/hrtf b_nh724.sofa"
|
||||||
|
}
|
||||||
|
control = {
|
||||||
|
"Azimuth" = 150.0
|
||||||
|
"Elevation" = 0.0
|
||||||
|
"Radius" = 3.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = sofa
|
||||||
|
label = spatializer
|
||||||
|
name = spRR
|
||||||
|
config = {
|
||||||
|
filename = "~/.config/hrtf-sofa/hrtf b_nh724.sofa"
|
||||||
|
}
|
||||||
|
control = {
|
||||||
|
"Azimuth" = 210.0
|
||||||
|
"Elevation" = 0.0
|
||||||
|
"Radius" = 3.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = sofa
|
||||||
|
label = spatializer
|
||||||
|
name = spSL
|
||||||
|
config = {
|
||||||
|
filename = "~/.config/hrtf-sofa/hrtf b_nh724.sofa"
|
||||||
|
}
|
||||||
|
control = {
|
||||||
|
"Azimuth" = 90.0
|
||||||
|
"Elevation" = 0.0
|
||||||
|
"Radius" = 3.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = sofa
|
||||||
|
label = spatializer
|
||||||
|
name = spSR
|
||||||
|
config = {
|
||||||
|
filename = "~/.config/hrtf-sofa/hrtf b_nh724.sofa"
|
||||||
|
}
|
||||||
|
control = {
|
||||||
|
"Azimuth" = 270.0
|
||||||
|
"Elevation" = 0.0
|
||||||
|
"Radius" = 3.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = sofa
|
||||||
|
label = spatializer
|
||||||
|
name = spLFE
|
||||||
|
config = {
|
||||||
|
filename = "~/.config/hrtf-sofa/hrtf b_nh724.sofa"
|
||||||
|
}
|
||||||
|
control = {
|
||||||
|
"Azimuth" = 0.0
|
||||||
|
"Elevation" = -60.0
|
||||||
|
"Radius" = 3.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
{ type = builtin label = mixer name = mixL }
|
||||||
|
{ type = builtin label = mixer name = mixR }
|
||||||
|
]
|
||||||
|
links = [
|
||||||
|
# output
|
||||||
|
{ output = "spFL:Out L" input="mixL:In 1" }
|
||||||
|
{ output = "spFL:Out R" input="mixR:In 1" }
|
||||||
|
{ output = "spFR:Out L" input="mixL:In 2" }
|
||||||
|
{ output = "spFR:Out R" input="mixR:In 2" }
|
||||||
|
{ output = "spFC:Out L" input="mixL:In 3" }
|
||||||
|
{ output = "spFC:Out R" input="mixR:In 3" }
|
||||||
|
{ output = "spRL:Out L" input="mixL:In 4" }
|
||||||
|
{ output = "spRL:Out R" input="mixR:In 4" }
|
||||||
|
{ output = "spRR:Out L" input="mixL:In 5" }
|
||||||
|
{ output = "spRR:Out R" input="mixR:In 5" }
|
||||||
|
{ output = "spSL:Out L" input="mixL:In 6" }
|
||||||
|
{ output = "spSL:Out R" input="mixR:In 6" }
|
||||||
|
{ output = "spSR:Out L" input="mixL:In 7" }
|
||||||
|
{ output = "spSR:Out R" input="mixR:In 7" }
|
||||||
|
{ output = "spLFE:Out L" input="mixL:In 8" }
|
||||||
|
{ output = "spLFE:Out R" input="mixR:In 8" }
|
||||||
|
]
|
||||||
|
inputs = [ "spFL:In" "spFR:In" "spFC:In" "spLFE:In" "spRL:In" "spRR:In", "spSL:In", "spSR:In" ]
|
||||||
|
outputs = [ "mixL:Out" "mixR:Out" ]
|
||||||
|
}
|
||||||
|
capture.props = {
|
||||||
|
node.name = "effect_input.spatializer"
|
||||||
|
media.class = Audio/Sink
|
||||||
|
audio.channels = 8
|
||||||
|
audio.position = [ FL FR FC LFE RL RR SL SR ]
|
||||||
|
}
|
||||||
|
playback.props = {
|
||||||
|
node.name = "effect_output.spatializer"
|
||||||
|
node.passive = true
|
||||||
|
audio.channels = 2
|
||||||
|
audio.position = [ FL FR ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
45
src/daemon/filter-chain/spatializer-single.conf
Normal file
45
src/daemon/filter-chain/spatializer-single.conf
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
# A virtual sound source sink
|
||||||
|
# Useful for testing spatial effects by moving it around with controls
|
||||||
|
#
|
||||||
|
# Copy this file into a conf.d/ directory such as
|
||||||
|
# ~/.config/pipewire/filter-chain.conf.d/
|
||||||
|
#
|
||||||
|
context.modules = [
|
||||||
|
{ name = libpipewire-module-filter-chain
|
||||||
|
args = {
|
||||||
|
node.description = "3D Sink"
|
||||||
|
media.name = "3D Sink"
|
||||||
|
filter.graph = {
|
||||||
|
nodes = [
|
||||||
|
{
|
||||||
|
type = sofa
|
||||||
|
label = spatializer
|
||||||
|
name = sp
|
||||||
|
config = {
|
||||||
|
filename = "~/.config/hrtf-sofa/hrtf b_nh724.sofa"
|
||||||
|
}
|
||||||
|
control = {
|
||||||
|
"Azimuth" = 220.0
|
||||||
|
"Elevation" = 0.0
|
||||||
|
"Radius" = 3.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
inputs = [ "sp:In" ]
|
||||||
|
outputs = [ "sp:Out L" "sp:Out R" ]
|
||||||
|
}
|
||||||
|
capture.props = {
|
||||||
|
node.name = "effect_input.3d"
|
||||||
|
media.class = Audio/Sink
|
||||||
|
audio.channels = 1
|
||||||
|
audio.position = [ FC ]
|
||||||
|
}
|
||||||
|
playback.props = {
|
||||||
|
node.name = "effect_output.3d"
|
||||||
|
node.passive = true
|
||||||
|
audio.channels = 2
|
||||||
|
audio.position = [ FL FR ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue