diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-12-05 14:21:22 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-12-05 14:21:22 +0000 |
commit | fa7614e9aa550d5c5f0b28a87e5b3ab91a7c2a77 (patch) | |
tree | b4e50d5ea2717c84ce932371e6f334e1ecae22cf | |
parent | 8c0897e81e374ee1775a0a25c72a0d9e71a9139c (diff) |
Add const to avoid warnings about discarded qualifiers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28091 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libaf/af_hrtf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libaf/af_hrtf.c b/libaf/af_hrtf.c index e8d0b9cd14..fe16823b9f 100644 --- a/libaf/af_hrtf.c +++ b/libaf/af_hrtf.c @@ -20,7 +20,7 @@ typedef struct af_hrtf_s { 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 @@ typedef struct af_hrtf_s { * 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 @@ static float conv(const int nx, const int nk, float *sx, float *sk, } /* 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 */ |