Changeset d27634d for python/ext


Ignore:
Timestamp:
Dec 10, 2013, 10:13:49 PM (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:
2f9af5d
Parents:
d7019c4
Message:

python/ext/py-source.c: not generated, modified init to get samplerate from aubio_source_t

Signed-off-by: Paul Brossier <piem@piem.org>

Location:
python/ext
Files:
1 added
2 edited

Legend:

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

    rd7019c4 rd27634d  
    3131#define Py_default_vector_length 1024
    3232
    33 #define Py_aubio_default_samplerate 44100
     33#define Py_aubio_default_samplerate 0
    3434
    3535#if HAVE_AUBIO_DOUBLE
     
    6969extern PyTypeObject Py_pvocType;
    7070
     71extern PyTypeObject Py_sourceType;
     72
  • python/ext/aubiomodule.c

    rd7019c4 rd27634d  
    199199      || (PyType_Ready (&Py_fftType) < 0)
    200200      || (PyType_Ready (&Py_pvocType) < 0)
     201      || (PyType_Ready (&Py_sourceType) < 0)
    201202      // generated objects
    202203      || (generated_types_ready() < 0 )
     
    227228  Py_INCREF (&Py_pvocType);
    228229  PyModule_AddObject (m, "pvoc", (PyObject *) & Py_pvocType);
     230  Py_INCREF (&Py_sourceType);
     231  PyModule_AddObject (m, "source", (PyObject *) & Py_sourceType);
    229232
    230233  // add generated objects
Note: See TracChangeset for help on using the changeset viewer.