Changeset 5652a8c for python/ext/py-source.c
- Timestamp:
- Apr 19, 2016, 2:16:39 AM (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:
- 26eb6d0
- Parents:
- f50dea4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/py-source.c
rf50dea4 r5652a8c 1 #include "aubio wraphell.h"1 #include "aubio-types.h" 2 2 3 3 typedef struct … … 218 218 } 219 219 220 AUBIO_MEMBERS_START(source) 220 static PyMemberDef Py_source_members[] = { 221 221 {"uri", T_STRING, offsetof (Py_source, uri), READONLY, 222 222 "path at which the source was created"}, … … 227 227 {"hop_size", T_INT, offsetof (Py_source, hop_size), READONLY, 228 228 "number of consecutive frames that will be read at each do or do_multi call"}, 229 AUBIO_MEMBERS_STOP(source) 230 229 { NULL } // sentinel 230 }; 231 231 232 232 static PyObject * … … 286 286 }; 287 287 288 AUBIO_TYPEOBJECT(source, "aubio.source") 288 PyTypeObject Py_sourceType = { 289 PyVarObject_HEAD_INIT (NULL, 0) 290 "aubio.source", 291 sizeof (Py_source), 292 0, 293 (destructor) Py_source_del, 294 0, 295 0, 296 0, 297 0, 298 0, 299 0, 300 0, 301 0, 302 0, 303 (ternaryfunc)Py_source_do, 304 0, 305 0, 306 0, 307 0, 308 Py_TPFLAGS_DEFAULT, 309 Py_source_doc, 310 0, 311 0, 312 0, 313 0, 314 0, 315 0, 316 Py_source_methods, 317 Py_source_members, 318 0, 319 0, 320 0, 321 0, 322 0, 323 0, 324 (initproc) Py_source_init, 325 0, 326 Py_source_new, 327 };
Note: See TracChangeset
for help on using the changeset viewer.