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-source.c

    rf1100a4 r7b56229  
    1 // WARNING: this file is generated, DO NOT EDIT
    2 
    3 // WARNING: if you haven't read the first line yet, please do so
    41#include "aubiowraphell.h"
    52
     
    127124}
    128125
     126static PyObject *
     127Pyaubio_source_close (Py_source *self, PyObject *unused)
     128{
     129  del_aubio_source (self->o);
     130  self->o = NULL;
     131  Py_RETURN_NONE;
     132}
     133
    129134static PyMethodDef Py_source_methods[] = {
    130135  {"get_samplerate", (PyCFunction) Pyaubio_source_get_samplerate,
     
    132137  {"get_channels", (PyCFunction) Pyaubio_source_get_channels,
    133138    METH_NOARGS, ""},
     139  {"close", (PyCFunction) Pyaubio_source_close,
     140    METH_NOARGS, ""},
    134141  {NULL} /* sentinel */
    135142};
Note: See TracChangeset for help on using the changeset viewer.