Changeset d27634d for python


Ignore:
Timestamp:
Dec 10, 2013, 10:13:49 PM (11 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
Files:
1 added
4 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
  • python/lib/generator.py

    rd7019c4 rd27634d  
    5757      'sink_apple_audio',
    5858      'sink_sndfile',
     59      'source',
    5960      'source_apple_audio',
    6061      'source_sndfile',
  • python/setup.py

    rd7019c4 rd27634d  
    5454    "ext/py-fft.c",
    5555    "ext/py-phasevoc.c",
     56    "ext/py-source.c",
    5657    # generated files
    5758    ] + generated_object_files,
Note: See TracChangeset for help on using the changeset viewer.