From: Paul Brossier Date: Thu, 21 Apr 2016 17:04:47 +0000 (+0200) Subject: src/musicutils.h: more const qualifiers X-Git-Tag: 0.4.4~300^2~295 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=e9bd0228f178ad25912784a0e45031c2463a4fc6;p=aubio.git src/musicutils.h: more const qualifiers --- diff --git a/src/musicutils.h b/src/musicutils.h index c375b180..0e317fb5 100644 --- a/src/musicutils.h +++ b/src/musicutils.h @@ -121,7 +121,7 @@ smpl_t aubio_zero_crossing_rate (fvec_t * v); \return level of v */ -smpl_t aubio_level_lin (fvec_t * v); +smpl_t aubio_level_lin (const fvec_t * v); /** compute sound pressure level (SPL) in dB @@ -134,7 +134,7 @@ smpl_t aubio_level_lin (fvec_t * v); \return level of v in dB SPL */ -smpl_t aubio_db_spl (fvec_t * v); +smpl_t aubio_db_spl (const fvec_t * v); /** check if buffer level in dB SPL is under a given threshold @@ -144,7 +144,7 @@ smpl_t aubio_db_spl (fvec_t * v); \return 0 if level is under the given threshold, 1 otherwise */ -uint_t aubio_silence_detection (fvec_t * v, smpl_t threshold); +uint_t aubio_silence_detection (const fvec_t * v, smpl_t threshold); /** get buffer level if level >= threshold, 1. otherwise