History

python/ext/aubio-types.h: only source defaults to samplerate = 0

Paul Brossier committed 12 years ago

Commit 2f9af5d1 parent d27634d2 files · +2 −2Browse files

Showing the changes to python/ext (2 of 2 files). Show all

Unified · Split

2 files
  1. python/ext/aubio-types.h +1 −1
  2. python/ext/py-source.c +1 −1
python/ext/aubio-types.h+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
30 30
31#define Py_default_vector_length 102431#define Py_default_vector_length 1024
32 32
33#define Py_aubio_default_samplerate 033#define Py_aubio_default_samplerate 44100
34 34
35#if HAVE_AUBIO_DOUBLE35#if HAVE_AUBIO_DOUBLE
36#error "Ouch! Python interface for aubio has not been much tested yet."36#error "Ouch! Python interface for aubio has not been much tested yet."
python/ext/py-source.c+1−1
@@ -39,7 +39,7 @@ Py_source_new (PyTypeObject * pytype, PyObject * args, PyObject * kwds) · 38 unmodified lines
39 self->uri = uri;39 self->uri = uri;
40 }40 }
41 41
42 self->samplerate = Py_aubio_default_samplerate;42 self->samplerate = 0;
43 if (samplerate > 0) {43 if (samplerate > 0) {
44 self->samplerate = samplerate;44 self->samplerate = samplerate;
45 //} else if (samplerate < 0) {45 //} else if (samplerate < 0) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t