ref: 2f9af5d5de8d3c4013de5cb2cd1ac0ebd1c5bc2b
parent: d27634db13fcc48b84ec2dd08018af7c105e9cba
author: Paul Brossier <[email protected]>
date: Tue Dec 10 11:51:58 EST 2013
python/ext/aubio-types.h: only source defaults to samplerate = 0 Signed-off-by: Paul Brossier <[email protected]>
--- a/python/ext/aubio-types.h
+++ b/python/ext/aubio-types.h
@@ -30,7 +30,7 @@
#define Py_default_vector_length 1024
-#define Py_aubio_default_samplerate 0
+#define Py_aubio_default_samplerate 44100
#if HAVE_AUBIO_DOUBLE
#error "Ouch! Python interface for aubio has not been much tested yet."
--- a/python/ext/py-source.c
+++ b/python/ext/py-source.c
@@ -39,7 +39,7 @@
self->uri = uri;
}
- self->samplerate = Py_aubio_default_samplerate;
+ self->samplerate = 0;
if (samplerate > 0) {
self->samplerate = samplerate;
//} else if (samplerate < 0) {