ref: e9bd0228f178ad25912784a0e45031c2463a4fc6
parent: ad1df9b72ac5a58de978f5d3e8d2bcc0d19d3475
author: Paul Brossier <piem@piem.org>
date: Thu Apr 21 15:04:47 EDT 2016
src/musicutils.h: more const qualifiers
--- a/src/musicutils.h
+++ b/src/musicutils.h
@@ -121,7 +121,7 @@
\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 @@
\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 @@
\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