Showing the changes to python/ext (2 of 2 files). Show all
Unified · Split
| @@ -30,7 +30,7 @@ · 29 unmodified lines | ||
| 30 | 30 | |
| 31 | 31 | #define Py_default_vector_length 1024 |
| 32 | 32 | |
| 33 | −#define Py_aubio_default_samplerate 0 | |
| 33 | +#define Py_aubio_default_samplerate 44100 | |
| 34 | 34 | |
| 35 | 35 | #if HAVE_AUBIO_DOUBLE |
| 36 | 36 | #error "Ouch! Python interface for aubio has not been much tested yet." |
| @@ -39,7 +39,7 @@ Py_source_new (PyTypeObject * pytype, PyObject * args, PyObject * kwds) · 38 unmodified lines | ||
| 39 | 39 | self->uri = uri; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | − self->samplerate = Py_aubio_default_samplerate; | |
| 42 | + self->samplerate = 0; | |
| 43 | 43 | if (samplerate > 0) { |
| 44 | 44 | self->samplerate = samplerate; |
| 45 | 45 | //} else if (samplerate < 0) { |