Ignore:
Timestamp:
Apr 19, 2016, 2:16:39 AM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
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
Message:

ext/: no more hell, use plain c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/ext/py-source.c

    rf50dea4 r5652a8c  
    1 #include "aubiowraphell.h"
     1#include "aubio-types.h"
    22
    33typedef struct
     
    218218}
    219219
    220 AUBIO_MEMBERS_START(source)
     220static PyMemberDef Py_source_members[] = {
    221221  {"uri", T_STRING, offsetof (Py_source, uri), READONLY,
    222222    "path at which the source was created"},
     
    227227  {"hop_size", T_INT, offsetof (Py_source, hop_size), READONLY,
    228228    "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};
    231231
    232232static PyObject *
     
    286286};
    287287
    288 AUBIO_TYPEOBJECT(source, "aubio.source")
     288PyTypeObject 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.