History

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

Paul Brossier committed 10 years ago

Commit 45521d21 parent 8be88e71 file · +8 −2Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/lib/moresetuptools.py+8−2
@@ -52,7 +52,7 @@ def add_local_aubio_lib(ext): · 51 unmodified lines
5252 ext.library_dirs += [os.path.join('build', 'src')]
5353 ext.libraries += ['aubio']
5454
55−def add_local_aubio_sources(ext):
55+def 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/")
5858 # create an empty header, macros will be passed on the command line
@@ -73,9 +73,15 @@ def add_local_aubio_sources(ext): · 14 unmodified lines
7373 print("Info: looking for *optional* additional packages")
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 \
8187 and 'avformat' in ext.libraries \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t