Changeset f1f2e7e for python/ext
- Timestamp:
- Feb 26, 2017, 11:47:19 PM (8 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, sampler
- Children:
- 6dda1c0
- Parents:
- cc469dd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/py-source.c
rcc469dd rf1f2e7e 273 273 } 274 274 275 static char Pyaubio_source_enter_doc[] = ""; 276 static PyObject* Pyaubio_source_enter(Py_source *self, PyObject *unused) { 277 Py_INCREF(self); 278 return (PyObject*)self; 279 } 280 281 static char Pyaubio_source_exit_doc[] = ""; 282 static PyObject* Pyaubio_source_exit(Py_source *self, PyObject *unused) { 283 Pyaubio_source_close(self, unused); 284 return Pyaubio_source_close(self, unused); 285 } 286 275 287 static PyMethodDef Py_source_methods[] = { 276 288 {"get_samplerate", (PyCFunction) Pyaubio_source_get_samplerate, … … 286 298 {"seek", (PyCFunction) Pyaubio_source_seek, 287 299 METH_VARARGS, Py_source_seek_doc}, 300 {"__enter__", (PyCFunction)Pyaubio_source_enter, METH_NOARGS, 301 Pyaubio_source_enter_doc}, 302 {"__exit__", (PyCFunction)Pyaubio_source_exit, METH_VARARGS, 303 Pyaubio_source_exit_doc}, 288 304 {NULL} /* sentinel */ 289 305 };
Note: See TracChangeset
for help on using the changeset viewer.