ref: 24e9b0a26a46459595278fa9e1b742f6a50749ab
parent: 84701449adee08554c9c483bdc38584a50024f02
author: Paul Brossier <piem@piem.org>
date: Fri Jul 1 13:17:52 EDT 2016
src/musicutils.h: aubio_level_detection input is a constant
--- a/src/mathutils.c
+++ b/src/mathutils.c
@@ -564,7 +564,7 @@
}
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) {
--- a/src/musicutils.h
+++ b/src/musicutils.h
@@ -154,7 +154,7 @@
\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
}