From: Paul Brossier Date: Tue, 10 Dec 2013 21:51:58 +0000 (-0500) Subject: python/ext/aubio-types.h: only source defaults to samplerate = 0 X-Git-Tag: 0.4.0~28 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=2f9af5d5de8d3c4013de5cb2cd1ac0ebd1c5bc2b;p=aubio.git python/ext/aubio-types.h: only source defaults to samplerate = 0 Signed-off-by: Paul Brossier --- diff --git a/python/ext/aubio-types.h b/python/ext/aubio-types.h index e8afc8d7..57a18412 100644 --- 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." diff --git a/python/ext/py-source.c b/python/ext/py-source.c index 33f6a16b..d35f3d9b 100644 --- a/python/ext/py-source.c +++ b/python/ext/py-source.c @@ -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) {