From 24e9b0a26a46459595278fa9e1b742f6a50749ab Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 1 Jul 2016 17:17:52 +0200 Subject: [PATCH] src/musicutils.h: aubio_level_detection input is a constant --- src/mathutils.c | 2 +- src/musicutils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mathutils.c b/src/mathutils.c index 5f7ac279..01b35193 100644 --- a/src/mathutils.c +++ b/src/mathutils.c @@ -564,7 +564,7 @@ aubio_silence_detection (const fvec_t * o, smpl_t threshold) } smpl_t -aubio_level_detection (fvec_t * o, smpl_t threshold) +aubio_level_detection (const fvec_t * o, smpl_t threshold) { smpl_t db_spl = aubio_db_spl (o); if (db_spl < threshold) { diff --git a/src/musicutils.h b/src/musicutils.h index 29d0efa8..f71d20ba 100644 --- a/src/musicutils.h +++ b/src/musicutils.h @@ -154,7 +154,7 @@ uint_t aubio_silence_detection (const fvec_t * v, smpl_t threshold); \return level in dB SPL if level >= threshold, 1. otherwise */ -smpl_t aubio_level_detection (fvec_t * v, smpl_t threshold); +smpl_t aubio_level_detection (const fvec_t * v, smpl_t threshold); #ifdef __cplusplus } -- 2.11.0