summaryrefslogtreecommitdiffstats
path: root/src/sample.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-06-29 16:48:37 +0000
committerLennart Poettering <lennart@poettering.net>2004-06-29 16:48:37 +0000
commitef422fa4ae626e9638ca70d1c56f27e701dd69c2 (patch)
tree1dd62aee8ec44f3d3c7d5f4bacb3d2b38769e5b3 /src/sample.h
parenta74cd2a1bd92eac6a4140d0794ac4b557be6c133 (diff)
esound protocol
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@40 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/sample.h')
-rw-r--r--src/sample.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/sample.h b/src/sample.h
index a4a973bf..697937e0 100644
--- a/src/sample.h
+++ b/src/sample.h
@@ -5,15 +5,16 @@
#include <sys/types.h>
enum pa_sample_format {
- SAMPLE_U8,
- SAMPLE_ALAW,
- SAMPLE_ULAW,
- SAMPLE_S16LE,
- SAMPLE_S16BE,
- SAMPLE_FLOAT32
+ PA_SAMPLE_U8,
+ PA_SAMPLE_ALAW,
+ PA_SAMPLE_ULAW,
+ PA_SAMPLE_S16LE,
+ PA_SAMPLE_S16BE,
+ PA_SAMPLE_FLOAT32,
+ PA_SAMPLE_MAX
};
-#define SAMPLE_S16NE SAMPLE_S16LE
+#define PA_SAMPLE_S16NE PA_SAMPLE_S16LE
struct pa_sample_spec {
enum pa_sample_format format;
@@ -25,4 +26,6 @@ size_t pa_bytes_per_second(struct pa_sample_spec *spec);
size_t pa_sample_size(struct pa_sample_spec *spec);
uint32_t pa_samples_usec(size_t length, struct pa_sample_spec *spec);
+int pa_sample_spec_valid(struct pa_sample_spec *spec);
+
#endif