Detect rubberband 3.0.0

This commit is contained in:
Robin Gareus 2022-09-13 06:44:20 +02:00
parent f4984966c2
commit a009307a3d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 17 additions and 0 deletions

17
wscript
View File

@ -1177,6 +1177,23 @@ def configure(conf):
autowaf.check_pkg(conf, 'vamp-hostsdk', uselib_store='VAMPHOSTSDK', atleast_version='2.1', mandatory=True)
autowaf.check_pkg(conf, 'rubberband', uselib_store='RUBBERBAND', mandatory=True)
# we cannot rely on pkg-config - https://lists.linuxaudio.org/archives/linux-audio-dev/2022-July/038395.html
conf.check_cc(
features = 'cxx',
mandatory = False,
execute = False,
msg = 'Checking for rubberband >= 3.0.0',
use = 'RUBBERBAND',
define_name= 'HAVE_RUBBERBAND_3_0_0',
fragment = '''
#include <rubberband/RubberBandStretcher.h>
#if RUBBERBAND_API_MAJOR_VERSION >= 2 && RUBBERBAND_API_MINOR_VERSION >= 7
int main () { return 0; }
#else
#error
#endif
''')
have_rf64_riff_support = conf.check_cc(fragment = '''
#include <sndfile.h>
int main () { int x = SFC_RF64_AUTO_DOWNGRADE; return 0; }