mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-01-26 14:13:23 +00:00
The "name" field needs to be optional, to be backward compatible with old settings spec format. If it's omitted, make it NULL.
77 lines
1.9 KiB
Plaintext
77 lines
1.9 KiB
Plaintext
context.modules = [
|
|
{ name = libpipewire-module-protocol-native }
|
|
{ name = libpipewire-module-metadata }
|
|
]
|
|
|
|
wireplumber.settings.schema = {
|
|
test-setting-bool = {
|
|
name = "test-setting-bool name"
|
|
description = "test-setting-bool description"
|
|
type = "bool"
|
|
default = false
|
|
}
|
|
test-setting-int = {
|
|
name = "test-setting-int name"
|
|
description = "test-setting-int description"
|
|
type = "int"
|
|
default = 0
|
|
min = -100
|
|
max = 100
|
|
}
|
|
test-setting-float = {
|
|
name = "test-setting-float name"
|
|
description = "test-setting-float description"
|
|
type = "float"
|
|
default = 0.0
|
|
min = -100.0
|
|
max = 100.0
|
|
}
|
|
test-setting-string = {
|
|
name = "test-setting-string name"
|
|
description = "test-setting-string description"
|
|
type = "string"
|
|
default = "default"
|
|
}
|
|
test-setting-string2 = {
|
|
name = "test-setting-string2 name"
|
|
description = "test-setting-string2 description"
|
|
type = "string"
|
|
default = "default"
|
|
}
|
|
test-setting-array = {
|
|
name = "test-setting-array name"
|
|
description = "test-setting-array description"
|
|
type = "array"
|
|
default = []
|
|
}
|
|
test-setting-array2 = {
|
|
name = "test-setting-array2 name"
|
|
description = "test-setting-array2 description"
|
|
type = "array"
|
|
default = []
|
|
}
|
|
test-setting-object = {
|
|
name = "test-setting-object name"
|
|
description = "test-setting-object description"
|
|
type = "object"
|
|
default = {}
|
|
}
|
|
test-setting-no-name = {
|
|
# optional name field omitted
|
|
description = "test-setting-no-name description"
|
|
type = "bool"
|
|
default = false
|
|
}
|
|
}
|
|
|
|
wireplumber.settings = {
|
|
test-setting-bool = true
|
|
test-setting-int = -20
|
|
test-setting-float = 3.14
|
|
test-setting-string = "blahblah"
|
|
test-setting-string2 = "a string with \"quotes\""
|
|
test-setting-array = [1, 2, 3]
|
|
test-setting-array2 = ["test1", "test 2", "test three", "test-four"]
|
|
test-setting-object = { key1: "value", key2: 2, key3: true }
|
|
}
|