mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-19 08:57:00 -05:00
format: Extend properties to handle lists/ranges
This replaces the simple string used by pa_format_info's proplist with a JSON string (accessed via new API only). This allows us to express lists and ranges more cleanly, and embed type information for future extensibility. We use json-c for JSON parsing. This is a lightweight depdency (32 KB on my system) and avoids the hassle of having to reinvent a JSON parser. Also included is a test which verifies functionality and is valgrind-clean.
This commit is contained in:
parent
62f56a9f6b
commit
8d076d0990
7 changed files with 389 additions and 22 deletions
|
|
@ -166,6 +166,11 @@ pa_format_info_free;
|
|||
pa_format_info_is_compatible;
|
||||
pa_format_info_is_pcm;
|
||||
pa_format_info_new;
|
||||
pa_format_info_set_prop_int;
|
||||
pa_format_info_set_prop_int_array;
|
||||
pa_format_info_set_prop_int_range;
|
||||
pa_format_info_set_prop_string;
|
||||
pa_format_info_set_prop_string_array;
|
||||
pa_format_info_snprint;
|
||||
pa_format_info_valid;
|
||||
pa_frame_size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue