summaryrefslogtreecommitdiffstats
path: root/libaf
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2008-12-06 02:16:51 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2008-12-06 02:16:51 +0200
commitcb3dc68691f4d01426c7abdd9e7bc16f8d461a9f (patch)
tree66106f966a36721c37c1e22221e85110cbefa255 /libaf
parent8c144171bb80dd3d1f7161b97675e78cad00bc65 (diff)
parentc6ef66231818b90c75f84b9407730647c93f040c (diff)
downloadmpv-cb3dc68691f4d01426c7abdd9e7bc16f8d461a9f.tar.bz2
mpv-cb3dc68691f4d01426c7abdd9e7bc16f8d461a9f.tar.xz
Merge svn changes up to r28103
Diffstat (limited to 'libaf')
-rw-r--r--libaf/af_hrtf.c6
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 */