summaryrefslogtreecommitdiffstats
path: root/src/pulse/sample.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-09-03 19:51:33 +0200
committerLennart Poettering <lennart@poettering.net>2008-09-03 19:51:33 +0200
commitbf403fe0d8bbb159e80b2edddb74c6ea37ec372b (patch)
tree28e462b28f13ff914b83f98f7304e8e00cb4359d /src/pulse/sample.h
parentcbd8e60f6cae11d3f26c8cd4ce27450e877f259f (diff)
introduce macros for all flags so that clients can check for them with #ifdef
Diffstat (limited to 'src/pulse/sample.h')
-rw-r--r--src/pulse/sample.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pulse/sample.h b/src/pulse/sample.h
index 6bf146ca..3f1b2fcf 100644
--- a/src/pulse/sample.h
+++ b/src/pulse/sample.h
@@ -185,6 +185,19 @@ typedef enum pa_sample_format {
/** A Shortcut for PA_SAMPLE_FLOAT32NE */
#define PA_SAMPLE_FLOAT32 PA_SAMPLE_FLOAT32NE
+/** \cond fulldocs */
+/* Allow clients to check with #ifdef for thse sample formats */
+#define PA_SAMPLE_U8 PA_SAMPLE_U8
+#define PA_SAMPLE_ALAW PA_SAMPLE_ALAW
+#define PA_SAMPLE_ULAW PA_SAMPLE_ULAW
+#define PA_SAMPLE_S16LE PA_SAMPLE_S16LE
+#define PA_SAMPLE_S16BE PA_SAMPLE_S16BE
+#define PA_SAMPLE_FLOAT32LE PA_SAMPLE_FLOAT32LE
+#define PA_SAMPLE_FLOAT32BE PA_SAMPLE_FLOAT32BE
+#define PA_SAMPLE_S32LE PA_SAMPLE_S32LE
+#define PA_SAMPLE_S32BE PA_SAMPLE_S32BE
+/** \endcond */
+
/** A sample format and attribute specification */
typedef struct pa_sample_spec {
pa_sample_format_t format;