projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8470144
)
src/musicutils.h: aubio_level_detection input is a constant
author
Paul Brossier
<piem@piem.org>
Fri, 1 Jul 2016 15:17:52 +0000
(17:17 +0200)
committer
Paul Brossier
<piem@piem.org>
Fri, 1 Jul 2016 15:17:52 +0000
(17:17 +0200)
src/mathutils.c
patch
|
blob
|
history
src/musicutils.h
patch
|
blob
|
history
diff --git
a/src/mathutils.c
b/src/mathutils.c
index
5f7ac27
..
01b3519
100644
(file)
--- 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
29d0efa
..
f71d20b
100644
(file)
--- 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
}