diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-08-23 00:06:35 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-08-23 00:06:35 +0200 |
commit | ab5ac06ac76c3afbbd99bce2840329dd74756a73 (patch) | |
tree | 5735f1e62502d0706a0ed7631cb365cab281303a /src/pulsecore/sample-util.h | |
parent | d6fb8d10819bebc1cee203de7330cceeafde9fed (diff) | |
parent | 6076cef2092391d8b46aa84f86857cffebce4583 (diff) |
Merge commit 'wtay/optimize'
Diffstat (limited to 'src/pulsecore/sample-util.h')
-rw-r--r-- | src/pulsecore/sample-util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pulsecore/sample-util.h b/src/pulsecore/sample-util.h index 6a306c11..34df5cf3 100644 --- a/src/pulsecore/sample-util.h +++ b/src/pulsecore/sample-util.h @@ -86,6 +86,11 @@ void pa_memchunk_dump_to_file(pa_memchunk *c, const char *fn); void pa_memchunk_sine(pa_memchunk *c, pa_mempool *pool, unsigned rate, unsigned freq); +typedef void (*pa_do_volume_func_t) (void *samples, void *volumes, unsigned channels, unsigned length); + +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); + #define PA_CHANNEL_POSITION_MASK_LEFT \ (PA_CHANNEL_POSITION_MASK(PA_CHANNEL_POSITION_FRONT_LEFT) \ | PA_CHANNEL_POSITION_MASK(PA_CHANNEL_POSITION_REAR_LEFT) \ |