projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a62fcb
)
python/ext/aubio-types.h: remove warning, add comments
author
Paul Brossier
<piem@piem.org>
Sat, 30 Apr 2016 14:58:33 +0000
(16:58 +0200)
committer
Paul Brossier
<piem@piem.org>
Sat, 30 Apr 2016 14:58:33 +0000
(16:58 +0200)
python/ext/aubio-types.h
patch
|
blob
|
history
diff --git
a/python/ext/aubio-types.h
b/python/ext/aubio-types.h
index
250d709
..
71ea0cf
100644
(file)
--- a/
python/ext/aubio-types.h
+++ b/
python/ext/aubio-types.h
@@
-35,11
+35,12
@@
#define Py_aubio_default_samplerate 44100
#if HAVE_AUBIO_DOUBLE
-#warning "double mode needs love"
+// 64 bit precision with HAVE_AUBIO_DOUBLE=1
#define AUBIO_NPY_SMPL NPY_DOUBLE
#define AUBIO_NPY_SMPL_STR "float64"
#define AUBIO_NPY_SMPL_CHR "d"
#else
+// default is 32 bit precision
#define AUBIO_NPY_SMPL NPY_FLOAT
#define AUBIO_NPY_SMPL_STR "float32"
#define AUBIO_NPY_SMPL_CHR "f"