modules: improve simple-protocol arguments

Use the format parsing code to also parse the channel_map.
Improve serialization of the properties.

See #2068
This commit is contained in:
Wim Taymans 2022-01-27 16:30:08 +01:00
parent 0ba5aebf0b
commit ee007eaf6c
2 changed files with 29 additions and 29 deletions

View file

@ -70,7 +70,7 @@ PW_LOG_TOPIC_STATIC(mod_topic, "mod." NAME);
#define MODULE_USAGE "[ capture=<bool> ] " \
"[ playback=<bool> ] " \
"[ capture.node=<source-target> ] " \
"[ capture.node=<source-target> [ stream.capture.sink=true ]] " \
"[ playback.node=<sink-target> ] " \
"[ audio.rate=<sample-rate, default:"DEFAULT_RATE"> ] " \
"[ audio.format=<format, default:"DEFAULT_FORMAT"> ] " \