summaryrefslogtreecommitdiffstats
path: root/src/sample.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-07-02 18:47:03 +0000
committerLennart Poettering <lennart@poettering.net>2004-07-02 18:47:03 +0000
commit13b35a2489e7e1d6341effe6e25b8cb8a0a94a02 (patch)
treed058c8021b02ec17583c3a95dd8a18e27c0e1a4c /src/sample.h
parent961fb4466a9396a11f1a9a6e7d4193409b8949d6 (diff)
add resampler
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@44 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/sample.h')
-rw-r--r--src/sample.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/sample.h b/src/sample.h
index 697937e0..1fd764d7 100644
--- a/src/sample.h
+++ b/src/sample.h
@@ -14,7 +14,11 @@ enum pa_sample_format {
PA_SAMPLE_MAX
};
+#ifdef WORDS_BIGENDIAN
+#define PA_SAMPLE_S16NE PA_SAMPLE_S16BE
+#else
#define PA_SAMPLE_S16NE PA_SAMPLE_S16LE
+#endif
struct pa_sample_spec {
enum pa_sample_format format;
@@ -22,10 +26,10 @@ struct pa_sample_spec {
uint8_t channels;
};
-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);
+size_t pa_bytes_per_second(const struct pa_sample_spec *spec);
+size_t pa_sample_size(const struct pa_sample_spec *spec);
+uint32_t pa_samples_usec(size_t length, const struct pa_sample_spec *spec);
-int pa_sample_spec_valid(struct pa_sample_spec *spec);
+int pa_sample_spec_valid(const struct pa_sample_spec *spec);
#endif