Ignore:
Timestamp:
Jan 24, 2014, 2:22:28 AM (10 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:
16dda03
Parents:
f1100a4
Message:

python/ext/py-{sink,source}.c: add close function

File:
1 edited

Legend:

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

    rf1100a4 r7b56229  
    9090AUBIO_MEMBERS_STOP(sink)
    9191
     92static PyObject *
     93Pyaubio_sink_close (Py_sink *self, PyObject *unused)
     94{
     95  del_aubio_sink (self->o);
     96  self->o = NULL;
     97  Py_RETURN_NONE;
     98}
    9299
    93100static PyMethodDef Py_sink_methods[] = {
     101  {"close", (PyCFunction) Pyaubio_sink_close,
     102    METH_NOARGS, ""},
    94103  {NULL} /* sentinel */
    95104};
Note: See TracChangeset for help on using the changeset viewer.