WpSpaPod objects with unknown keys warn on parse
Attempting to iterate over an ALSA node's params like for param in node:iterate_params("Props") do param:parse() end
results in the following warning:
C 14:05:42.610431 wp-spa-pod (null):(null):(null): wp_spa_pod_get_property: assertion 'key_val != NULL' failed
W 14:05:42.610441 m-lua-scripting (null):(null):(null): (../modules/module-lua-scripting/pod.c:1056):push_luapod: runtime check failed: (wp_spa_pod_get_property (prop, &key, &val))
Log.info(param)
says...
I 14:05:42.610402 script/static-link static-link.lua:77:chunk: <WpSpaPod:0xfd7ac0> node prop:
Object: size 496, type Spa:Pod:Object:Param:Props (262146), id Spa:Enum:ParamId:Props (2)
Prop: key Spa:Pod:Object:Param:Props:device (257), flags 00000000
String "hw:Generic"
Prop: key Spa:Pod:Object:Param:Props:deviceName (258), flags 00000000
String ""
Prop: key Spa:Pod:Object:Param:Props:cardName (261), flags 00000000
String ""
Prop: key Spa:Pod:Object:Param:Props:minLatency (262), flags 00000000
Int 16
Prop: key Spa:Pod:Object:Param:Props:maxLatency (263), flags 00000000
Int 8192
Prop: key unknown (16777216), flags 00000000
Bool false
Prop: key Spa:Pod:Object:Param:Props:latencyOffsetNsec (65550), flags 00000000
Long 0
pw-dump
serializes it like so:
{
"device": "hw:Generic",
"deviceName": "",
"cardName": "",
"minLatency": 16,
"maxLatency": 8192,
"id-01000000": false,
"latencyOffsetNsec": 0
}
Also in PropInfo:
{
"id": "id-01000000",
"name": "Use the driver channelmap",
"type": false
}
would it make sense to support this as a { [numerickey] = false }
or something?