Ignore:
Timestamp:
Apr 19, 2016, 2:16:39 AM (8 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-sink.c

    rf50dea4 r5652a8c  
    1 #include "aubiowraphell.h"
     1#include "aubio-types.h"
    22
    33typedef struct
     
    125125}
    126126
    127 AUBIO_DEL(sink)
     127static void
     128Py_sink_del (Py_sink *self, PyObject *unused)
     129{
     130  del_aubio_sink(self->o);
     131  Py_TYPE(self)->tp_free((PyObject *) self);
     132}
    128133
    129134/* function Py_sink_do */
     
    194199}
    195200
    196 AUBIO_MEMBERS_START(sink)
     201static PyMemberDef Py_sink_members[] = {
    197202  {"uri", T_STRING, offsetof (Py_sink, uri), READONLY,
    198203    "path at which the sink was created"},
     
    201206  {"channels", T_INT, offsetof (Py_sink, channels), READONLY,
    202207    "number of channels with which the sink was created"},
    203 AUBIO_MEMBERS_STOP(sink)
     208  { NULL } // sentinel
     209};
    204210
    205211static PyObject *
     
    217223};
    218224
    219 AUBIO_TYPEOBJECT(sink, "aubio.sink")
     225PyTypeObject Py_sinkType = {
     226  PyVarObject_HEAD_INIT (NULL, 0)
     227  "aubio.sink",
     228  sizeof (Py_sink),
     229  0,
     230  (destructor) Py_sink_del,
     231  0,
     232  0,
     233  0,
     234  0,
     235  0,
     236  0,
     237  0,
     238  0,
     239  0,
     240  (ternaryfunc)Py_sink_do,
     241  0,
     242  0,
     243  0,
     244  0,
     245  Py_TPFLAGS_DEFAULT,
     246  Py_sink_doc,
     247  0,
     248  0,
     249  0,
     250  0,
     251  0,
     252  0,
     253  Py_sink_methods,
     254  Py_sink_members,
     255  0,
     256  0,
     257  0,
     258  0,
     259  0,
     260  0,
     261  (initproc) Py_sink_init,
     262  0,
     263  Py_sink_new,
     264};
Note: See TracChangeset for help on using the changeset viewer.