Changeset 45521d2 for python


Ignore:
Timestamp:
Oct 3, 2016, 4:33:02 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, sampler, yinfft+
Children:
8d09036
Parents:
8be88e7
Message:

python/lib/moresetuptools.py: use samplerate in single precision only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/moresetuptools.py

    r8be88e7 r45521d2  
    5353    ext.libraries += ['aubio']
    5454
    55 def add_local_aubio_sources(ext):
     55def add_local_aubio_sources(ext, usedouble = False):
    5656    """ build aubio inside python module instead of linking against libaubio """
    5757    print("Warning: libaubio was not built with waf, adding src/")
     
    7474    packages = ['libavcodec', 'libavformat', 'libavutil', 'libavresample',
    7575                'jack',
    76                 'sndfile', 'samplerate',
     76                'jack',
     77                'sndfile',
    7778                #'fftw3f',
    7879               ]
     80    # samplerate only works with float
     81    if usedouble == False:
     82        packages += ['samplerate']
     83    else:
     84        print("Info: not adding libsamplerate in double precision mode")
    7985    add_packages(packages, ext=ext)
    8086    if 'avcodec' in ext.libraries \
Note: See TracChangeset for help on using the changeset viewer.