changeset 28057:e29d1b1afdc7

Add const to avoid warnings about discarded qualifiers.
author reimar
date Fri, 05 Dec 2008 14:21:22 +0000
parents 92d1e627d2c7
children 323c1ddffdd6
files libaf/af_hrtf.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/af_hrtf.c	Fri Dec 05 09:57:37 2008 +0000
+++ b/libaf/af_hrtf.c	Fri Dec 05 14:21:22 2008 +0000
@@ -20,7 +20,7 @@
     int dlbuflen, hrflen, basslen;
     /* L, C, R, Ls, Rs channels */
     float *lf, *rf, *lr, *rr, *cf, *cr;
-    float *cf_ir, *af_ir, *of_ir, *ar_ir, *or_ir, *cr_ir;
+    const float *cf_ir, *af_ir, *of_ir, *ar_ir, *or_ir, *cr_ir;
     int cf_o, af_o, of_o, ar_o, or_o, cr_o;
     /* Bass */
     float *ba_l, *ba_r;
@@ -59,7 +59,7 @@
  *    sk:	convolution kernel
  *    offset:	offset on the ring buffer, can be 
  */
-static float conv(const int nx, const int nk, float *sx, float *sk,
+static float conv(const int nx, const int nk, const float *sx, const float *sk,
 		  const int offset)
 {
     /* k = reminder of offset / nx */
@@ -73,7 +73,7 @@
 }
 
 /* Detect when the impulse response starts (significantly) */
-static int pulse_detect(float *sx)
+static int pulse_detect(const float *sx)
 {
     /* nmax must be the reference impulse response length (128) minus
        s->hrflen */