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:
Wim Taymans 2022-01-20 18:06:19 +01:00
parent aa128ed489
commit 5a72e2769a
2 changed files with 143 additions and 20 deletions

View file

@ -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
# }
#}
}
}
]