summaryrefslogtreecommitdiffstats
path: root/src/pulse/sample.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-02-04 17:10:15 +0100
committerLennart Poettering <lennart@poettering.net>2009-02-04 17:10:15 +0100
commitce76216bce9981c31ebab2ca5a97d6c5c0509edd (patch)
tree9570511c334363c51d785aab6f6acbd7f708b299 /src/pulse/sample.h
parent32e5e64921febb219c0b7ed8ca7da141b4ad0f23 (diff)
add pa_sample_size_of_format()
Diffstat (limited to 'src/pulse/sample.h')
-rw-r--r--src/pulse/sample.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pulse/sample.h b/src/pulse/sample.h
index 45a481fe..3c05b54a 100644
--- a/src/pulse/sample.h
+++ b/src/pulse/sample.h
@@ -261,6 +261,10 @@ size_t pa_frame_size(const pa_sample_spec *spec) PA_GCC_PURE;
/** Return the size of a sample with the specific sample type */
size_t pa_sample_size(const pa_sample_spec *spec) PA_GCC_PURE;
+/** Similar to pa_sample_size() but take a sample format instead of a
+ * full sample spec. \since 0.9.15 */
+size_t pa_sample_size_of_format(pa_sample_format_t f) PA_GCC_PURE;
+
/** Calculate the time the specified bytes take to play with the
* specified sample type. The return value will always be rounded
* down for non-integral return values. */