From 83167aa448c455a93479ab7576daddb7c5db84c8 Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Fri, 9 Apr 2021 17:35:59 +0100 Subject: [PATCH 1/3] Check for sincos (thanks ~nia) --- meson.build | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meson.build b/meson.build index d32902c..4beea2b 100644 --- a/meson.build +++ b/meson.build @@ -101,6 +101,9 @@ sndfile_dep = dependency('sndfile', version: '>= 1.0.16', required: false) vamp_dep = dependency('vamp-sdk', version: '>= 2.9', required: false) thread_dep = dependency('threads') have_ladspa = cpp.has_header('ladspa.h', args: extra_include_args) +have_sincos = cpp.has_function('sincos', + prefix: '#define _GNU_SOURCE\n#include ', + args: '-lm') have_jni = cpp.has_header('jni.h', args: extra_include_args) javac = find_program('javac', required: false) @@ -223,6 +226,10 @@ else endif # resampler +if not have_sincos + feature_defines += [ '-DLACK_SINCOS' ] +endif + if ipp_needed feature_defines += [ '-DHAVE_IPP', From cc937ebe655fc3c902ad0bc5cb63ce4e782720ee Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Wed, 14 Apr 2021 19:14:32 +0100 Subject: [PATCH 2/3] Avoid a "using namespace" --- src/RubberBandStretcher.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/RubberBandStretcher.cpp b/src/RubberBandStretcher.cpp index 19d6ea1..e9851a7 100644 --- a/src/RubberBandStretcher.cpp +++ b/src/RubberBandStretcher.cpp @@ -23,7 +23,6 @@ #include "StretcherImpl.h" -using namespace std; namespace RubberBand { @@ -122,7 +121,7 @@ RubberBandStretcher::setMaxProcessSize(size_t samples) } void -RubberBandStretcher::setKeyFrameMap(const map &mapping) +RubberBandStretcher::setKeyFrameMap(const std::map &mapping) { m_d->setKeyFrameMap(mapping); } @@ -177,19 +176,19 @@ RubberBandStretcher::getInputIncrement() const return m_d->getInputIncrement(); } -vector +std::vector RubberBandStretcher::getOutputIncrements() const { return m_d->getOutputIncrements(); } -vector +std::vector RubberBandStretcher::getPhaseResetCurve() const { return m_d->getPhaseResetCurve(); } -vector +std::vector RubberBandStretcher::getExactTimePoints() const { return m_d->getExactTimePoints(); From 832e41ffddaaf6f108b1022736d8612191e0f024 Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Mon, 10 May 2021 08:45:14 +0100 Subject: [PATCH 3/3] I think Meson is now included in the AppVeyor image already --- .appveyor.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index fe8e8e5..d8558dd 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -10,7 +10,6 @@ platform: install: - cinst wget - - cinst meson - cinst libsndfile build_script: