python/ext/aubio-types.h: only source defaults to samplerate = 0
authorPaul Brossier <piem@piem.org>
Tue, 10 Dec 2013 21:51:58 +0000 (16:51 -0500)
committerPaul Brossier <piem@piem.org>
Tue, 10 Dec 2013 21:51:58 +0000 (16:51 -0500)
Signed-off-by: Paul Brossier <piem@piem.org>
python/ext/aubio-types.h
python/ext/py-source.c

index e8afc8d..57a1841 100644 (file)
@@ -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."
index 33f6a16..d35f3d9 100644 (file)
@@ -39,7 +39,7 @@ Py_source_new (PyTypeObject * pytype, PyObject * args, PyObject * kwds)
     self->uri = uri;
   }
 
-  self->samplerate = Py_aubio_default_samplerate;
+  self->samplerate = 0;
   if (samplerate > 0) {
     self->samplerate = samplerate;
   //} else if (samplerate < 0) {