From: Paul Brossier Date: Fri, 1 Jul 2016 15:17:52 +0000 (+0200) Subject: src/musicutils.h: aubio_level_detection input is a constant X-Git-Tag: 0.4.4~295 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=24e9b0a26a46459595278fa9e1b742f6a50749ab src/musicutils.h: aubio_level_detection input is a constant --- 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 }