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: diff --git a/meson.build b/meson.build index 953a9f3..673cf6b 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) @@ -232,6 +235,10 @@ else endif # resampler +if not have_sincos + feature_defines += [ '-DLACK_SINCOS' ] +endif + if ipp_needed feature_defines += [ '-DHAVE_IPP', 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();