Changeset 26eb6d0 for python/ext
- Timestamp:
- Apr 19, 2016, 6:26:35 PM (9 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 013d0d7
- Parents:
- 5652a8c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/py-source.c
r5652a8c r26eb6d0 185 185 aubio_source_do (self->o, self->read_to, &read); 186 186 187 PyObject *outputs = Py List_New(0);188 Py List_Append( outputs, (PyObject *)PyAubio_CFvecToArray (self->read_to));189 Py List_Append( outputs, (PyObject *)PyLong_FromLong(read));187 PyObject *outputs = PyTuple_New(2); 188 PyTuple_SetItem( outputs, 0, (PyObject *)PyAubio_CFvecToArray (self->read_to) ); 189 PyTuple_SetItem( outputs, 1, (PyObject *)PyLong_FromLong(read)); 190 190 return outputs; 191 191 } … … 212 212 aubio_source_do_multi (self->o, self->mread_to, &read); 213 213 214 PyObject *outputs = Py List_New(0);215 Py List_Append( outputs, (PyObject *)PyAubio_CFmatToArray (self->mread_to));216 Py List_Append( outputs, (PyObject *)PyLong_FromLong(read));214 PyObject *outputs = PyTuple_New(2); 215 PyTuple_SetItem( outputs, 0, (PyObject *)PyAubio_CFmatToArray (self->mread_to)); 216 PyTuple_SetItem( outputs, 1, (PyObject *)PyLong_FromLong(read)); 217 217 return outputs; 218 218 }
Note: See TracChangeset
for help on using the changeset viewer.