# HG changeset patch # User reimar # Date 1228486882 0 # Node ID e29d1b1afdc7518b5c99d13629402b0f41c29e5c # Parent 92d1e627d2c793b226a908dc852e22fc5bdcab63 Add const to avoid warnings about discarded qualifiers. diff -r 92d1e627d2c7 -r e29d1b1afdc7 libaf/af_hrtf.c --- 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 */