summaryrefslogtreecommitdiff
path: root/src/pulsecore/sample-util.h
diff options
context:
space:
mode:
authorPeter Meerwald <p.meerwald@bct-electronic.com>2012-07-09 18:01:32 +0200
committerArun Raghavan <arun.raghavan@collabora.co.uk>2012-07-17 11:22:09 +0530
commit503de445a6c148f82f6c0b7159377559eaa5fc56 (patch)
tree9ebf6cedc8171f3c06144080cb6fb393a9892d04 /src/pulsecore/sample-util.h
parent9b80d1d14ad03bc45e7a18d0ee137001ded1e4b3 (diff)
core: Set volumes const in pa_do_volume_func_t
volumes do not change, the samples get scaled Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
Diffstat (limited to 'src/pulsecore/sample-util.h')
-rw-r--r--src/pulsecore/sample-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/sample-util.h b/src/pulsecore/sample-util.h
index cf79d433..a6b4600b 100644
--- a/src/pulsecore/sample-util.h
+++ b/src/pulsecore/sample-util.h
@@ -88,7 +88,7 @@ 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);
+typedef void (*pa_do_volume_func_t) (void *samples, const 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);