mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
format: Add convenience API to check if a format is PCM or not
This commit is contained in:
parent
0ac2cfce6d
commit
54c391e6db
3 changed files with 8 additions and 0 deletions
|
|
@ -70,6 +70,10 @@ int pa_format_info_valid(pa_format_info *f) {
|
|||
return (f->encoding >= 0 && f->encoding < PA_ENCODING_MAX && f->plist != NULL);
|
||||
}
|
||||
|
||||
int pa_format_info_is_pcm(pa_format_info *f) {
|
||||
return f->encoding == PA_ENCODING_PCM;
|
||||
}
|
||||
|
||||
pa_bool_t pa_format_info_is_compatible(pa_format_info *first, pa_format_info *second) {
|
||||
const char *key;
|
||||
void *state = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue