From 2f9af5d5de8d3c4013de5cb2cd1ac0ebd1c5bc2b Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Tue, 10 Dec 2013 16:51:58 -0500 Subject: [PATCH] python/ext/aubio-types.h: only source defaults to samplerate = 0 Signed-off-by: Paul Brossier --- python/ext/aubio-types.h | 2 +- python/ext/py-source.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.11.0