shithub: aubio

Download patch

ref: 8be88e77f5c275fdf4efc99ae182d14940948786
parent: 5210563159dca879feeb28ae22aad42df3f3af64
author: Paul Brossier <piem@piem.org>
date: Mon Oct 3 10:24:29 EDT 2016

wscript: disable libsamplerate if double precision enabled (libsamplerate only supports float)

--- a/wscript
+++ b/wscript
@@ -261,6 +261,13 @@
                 mandatory = ctx.options.enable_sndfile)
 
     # check for libsamplerate
+    if (ctx.options.enable_double):
+        if (ctx.options.enable_samplerate):
+            ctx.fatal("Could not compile aubio in double precision mode with libsamplerate")
+        else:
+            ctx.options.enable_samplerate = False
+            ctx.msg('Checking if using samplerate', 'no (disabled in double precision mode)',
+                    color = 'YELLOW')
     if (ctx.options.enable_samplerate != False):
         ctx.check_cfg(package = 'samplerate', atleast_version = '0.0.15',
                 args = '--cflags --libs',