Ignore:
Timestamp:
Apr 19, 2016, 2:16:39 AM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, 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-filterbank.c

    rf50dea4 r5652a8c  
    1 #include "aubiowraphell.h"
     1#include "aubio-types.h"
    22
    33static char Py_filterbank_doc[] = "filterbank object";
     
    1212} Py_filterbank;
    1313
    14 //AUBIO_NEW(filterbank)
    1514static PyObject *
    1615Py_filterbank_new (PyTypeObject * type, PyObject * args, PyObject * kwds)
     
    9796}
    9897
    99 AUBIO_MEMBERS_START(filterbank)
     98static PyMemberDef Py_filterbank_members[] = {
    10099  {"win_s", T_INT, offsetof (Py_filterbank, win_s), READONLY,
    101100    "size of the window"},
    102101  {"n_filters", T_INT, offsetof (Py_filterbank, n_filters), READONLY,
    103102    "number of filters"},
    104 AUBIO_MEMBERS_STOP(filterbank)
     103  {NULL} /* sentinel */
     104};
    105105
    106106static PyObject *
     
    204204};
    205205
    206 AUBIO_TYPEOBJECT(filterbank, "aubio.filterbank")
     206PyTypeObject Py_filterbankType = {
     207  PyVarObject_HEAD_INIT (NULL, 0)
     208  "aubio.filterbank",
     209  sizeof (Py_filterbank),
     210  0,
     211  (destructor) Py_filterbank_del,
     212  0,
     213  0,
     214  0,
     215  0,
     216  0,
     217  0,
     218  0,
     219  0,
     220  0,
     221  (ternaryfunc)Py_filterbank_do,
     222  0,
     223  0,
     224  0,
     225  0,
     226  Py_TPFLAGS_DEFAULT,
     227  Py_filterbank_doc,
     228  0,
     229  0,
     230  0,
     231  0,
     232  0,
     233  0,
     234  Py_filterbank_methods,
     235  Py_filterbank_members,
     236  0,
     237  0,
     238  0,
     239  0,
     240  0,
     241  0,
     242  (initproc) Py_filterbank_init,
     243  0,
     244  Py_filterbank_new,
     245};
Note: See TracChangeset for help on using the changeset viewer.