summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/sample-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-09-09 04:27:16 +0200
committerLennart Poettering <lennart@poettering.net>2009-09-09 04:27:16 +0200
commit1f0904b800d9d69698e79ce0435a2777d5f7ec27 (patch)
treedc494ed60c715d276700b00ec8b5e97a3f7df90c /src/pulsecore/sample-util.h
parentc2f1994968e71f0f0a6c1f44bd8ec40edf1b6434 (diff)
sample-util: add pa_convert_size() call for converting sizes between two sample specs
Diffstat (limited to 'src/pulsecore/sample-util.h')
-rw-r--r--src/pulsecore/sample-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pulsecore/sample-util.h b/src/pulsecore/sample-util.h
index 34df5cf3..d0235d60 100644
--- a/src/pulsecore/sample-util.h
+++ b/src/pulsecore/sample-util.h
@@ -91,6 +91,8 @@ typedef void (*pa_do_volume_func_t) (void *samples, void *volumes, unsigned chan
pa_do_volume_func_t pa_get_volume_func(pa_sample_format_t f);
void pa_set_volume_func(pa_sample_format_t f, pa_do_volume_func_t func);
+size_t pa_convert_size(size_t size, const pa_sample_spec *from, const pa_sample_spec *to);
+
#define PA_CHANNEL_POSITION_MASK_LEFT \
(PA_CHANNEL_POSITION_MASK(PA_CHANNEL_POSITION_FRONT_LEFT) \
| PA_CHANNEL_POSITION_MASK(PA_CHANNEL_POSITION_REAR_LEFT) \