summaryrefslogtreecommitdiffstats
path: root/src/pulse/format.h
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2011-03-01 16:34:06 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2011-05-02 11:54:47 +0530
commit54c391e6db550c5519df0ebb37f2197eed440c92 (patch)
treed13e7ffdd9f7331c74312d14edc242f076bd094b /src/pulse/format.h
parent0ac2cfce6d1a3d7ab5af6aca659e46625c32d3c4 (diff)
format: Add convenience API to check if a format is PCM or not
Diffstat (limited to 'src/pulse/format.h')
-rw-r--r--src/pulse/format.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pulse/format.h b/src/pulse/format.h
index fdf4f377..7e3ab08d 100644
--- a/src/pulse/format.h
+++ b/src/pulse/format.h
@@ -74,6 +74,9 @@ void pa_format_info_free(pa_format_info *f);
/** Returns non-zero when the format info structure is valid */
int pa_format_info_valid(pa_format_info *f);
+/** Returns non-zero when the format info structure represents a PCM (i.e. uncompressed data) format */
+int pa_format_info_is_pcm(pa_format_info *f);
+
PA_C_DECL_END
#endif