[pulseaudio-discuss] [PATCH 1/2] svolume: Make volume pointer parameter const for pa_volume_float32re_c()

Peter Meerwald pmeerw at pmeerw.net
Tue Sep 2 17:25:41 PDT 2014


const obviously missing

Signed-off-by: Peter Meerwald <pmeerw at pmeerw.net>
---
 src/pulsecore/svolume_c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pulsecore/svolume_c.c b/src/pulsecore/svolume_c.c
index eb04973..ad2df18 100644
--- a/src/pulsecore/svolume_c.c
+++ b/src/pulsecore/svolume_c.c
@@ -117,7 +117,7 @@ static void pa_volume_float32ne_c(float *samples, const float *volumes, unsigned
     }
 }
 
-static void pa_volume_float32re_c(float *samples, float *volumes, unsigned channels, unsigned length) {
+static void pa_volume_float32re_c(float *samples, const float *volumes, unsigned channels, unsigned length) {
     unsigned channel;
 
     length /= sizeof(float);
-- 
1.9.1



More information about the pulseaudio-discuss mailing list