Ignore:
Timestamp:
Apr 28, 2016, 6:59:55 PM (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:
6937842
Parents:
1f4d932
Message:

python/ext/py-cvec.c: rewrite and simplify aubio.cvec, safer and better memory usage (see #49)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/ext/aubio-types.h

    r1f4d932 r92a8800  
    5151#endif
    5252
    53 // special python type for cvec
    54 typedef struct
    55 {
    56   PyObject_HEAD
    57   cvec_t * o;
    58   uint_t length;
    59 } Py_cvec;
    6053extern PyTypeObject Py_cvecType;
    6154
     
    6457extern int PyAubio_ArrayToCFvec (PyObject * self, fvec_t *out);
    6558
    66 extern PyObject * PyAubio_CCvecToPyCvec (cvec_t * self, Py_cvec *out);
    67 extern int PyAubio_ArrayToCCvec (PyObject *input, cvec_t *i);
     59extern PyObject * PyAubio_CCvecToPyCvec (cvec_t * self);
     60extern int PyAubio_PyCvecToCCvec (PyObject *input, cvec_t *i);
    6861
    6962extern PyObject *PyAubio_CFmatToArray (fmat_t * self);
Note: See TracChangeset for help on using the changeset viewer.