[MPlayer-cvslog] r28091 - trunk/libaf/af_hrtf.c

reimar subversion at mplayerhq.hu
Fri Dec 5 15:21:22 CET 2008


Author: reimar
Date: Fri Dec  5 15:21:22 2008
New Revision: 28091

Log:
Add const to avoid warnings about discarded qualifiers.


Modified:
   trunk/libaf/af_hrtf.c

Modified: trunk/libaf/af_hrtf.c
==============================================================================
--- trunk/libaf/af_hrtf.c	(original)
+++ trunk/libaf/af_hrtf.c	Fri Dec  5 15:21:22 2008
@@ -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 in
 }
 
 /* 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 */



More information about the MPlayer-cvslog mailing list