mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
format: Avoid some code duplication
We frequently need to free an idxset containing pa_format_infos, so define an internal free function that can be used directly with this (instead of defining it once-per-file).
This commit is contained in:
parent
13229fb39e
commit
e418e49ecb
4 changed files with 12 additions and 14 deletions
|
|
@ -296,6 +296,7 @@ pa_tagstruct *pa_tagstruct_command(pa_context *c, uint32_t command, uint32_t *ta
|
|||
void pa_ext_device_manager_command(pa_context *c, uint32_t tag, pa_tagstruct *t);
|
||||
void pa_ext_stream_restore_command(pa_context *c, uint32_t tag, pa_tagstruct *t);
|
||||
|
||||
void pa_format_info_free2(pa_format_info *f, void *userdata);
|
||||
pa_bool_t pa_format_info_is_compatible(pa_format_info *first, pa_format_info *second);
|
||||
pa_format_info* pa_format_info_from_sample_spec(pa_sample_spec *ss, pa_channel_map *map);
|
||||
pa_bool_t pa_format_info_to_sample_spec(pa_format_info *f, pa_sample_spec *ss, pa_channel_map *map);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue