mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
adapter: add adapter.auto-port-config property
This automatically configures the node in a supported format with the highest amount of channels. Options are available to enable monitor and to override the port channels as AUX or UNKNOWN.
This commit is contained in:
parent
aa128ed489
commit
5a72e2769a
2 changed files with 143 additions and 20 deletions
|
|
@ -207,18 +207,23 @@ context.objects = [
|
|||
# audio.channels 6
|
||||
# ]
|
||||
#}
|
||||
node.param.PortConfig = {
|
||||
direction = Output
|
||||
adapter.auto-port-config = {
|
||||
mode = dsp
|
||||
format = {
|
||||
mediaType = audio
|
||||
mediaSubtype = raw
|
||||
format = F32
|
||||
rate = 48000
|
||||
channels = 4
|
||||
#position = [ FL FR RL RR ]
|
||||
}
|
||||
monitor = false
|
||||
position = unknown # aux, preserve
|
||||
}
|
||||
#node.param.PortConfig = {
|
||||
# direction = Output
|
||||
# mode = dsp
|
||||
# format = {
|
||||
# mediaType = audio
|
||||
# mediaSubtype = raw
|
||||
# format = F32
|
||||
# rate = 48000
|
||||
# channels = 4
|
||||
# position = [ FL FR RL RR ]
|
||||
# }
|
||||
#}
|
||||
}
|
||||
}
|
||||
{ factory = adapter
|
||||
|
|
@ -257,18 +262,23 @@ context.objects = [
|
|||
# audio.format S16
|
||||
# ]
|
||||
#}
|
||||
node.param.PortConfig = {
|
||||
direction = Input
|
||||
adapter.auto-port-config = {
|
||||
mode = dsp
|
||||
monitor = true
|
||||
format = {
|
||||
mediaType = audio
|
||||
mediaSubtype = raw
|
||||
format = F32
|
||||
rate = 48000
|
||||
channels = 4
|
||||
}
|
||||
monitor = false
|
||||
position = unknown # aux, preserve
|
||||
}
|
||||
#node.param.PortConfig = {
|
||||
# direction = Input
|
||||
# mode = dsp
|
||||
# monitor = true
|
||||
# format = {
|
||||
# mediaType = audio
|
||||
# mediaSubtype = raw
|
||||
# format = F32
|
||||
# rate = 48000
|
||||
# channels = 4
|
||||
# }
|
||||
#}
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue