Don't update unused dsp timer variable in freewheel process in PortaudioBackend
[ardour.git] / libs / vamp-plugins / Onset.cpp
index 196ca29dac0359397cd46c8bc8912413886d6f36..b8a97170240cb3e23ba2808aa25207a8e473ef7d 100644 (file)
@@ -14,6 +14,9 @@
 
 */
 
+#ifdef COMPILER_MSVC
+#include <ardourext/float_cast.h>
+#endif
 #include <math.h>
 #include "Onset.h"
 
@@ -143,10 +146,10 @@ Onset::initialise(size_t channels, size_t stepSize, size_t blockSize)
     return true;
 }
 
-#ifdef HAVE_AUBIO4
 void
 Onset::reset()
 {
+#ifdef HAVE_AUBIO4
     if (m_onsetdet) del_aubio_onset(m_onsetdet);
 
     m_onsetdet = new_aubio_onset
@@ -163,8 +166,8 @@ Onset::reset()
                                              lrintf(m_inputSampleRate));
 
     m_lastOnset = Vamp::RealTime::zeroTime - m_delay - m_delay;
-}
 #endif
+}
 
 size_t
 Onset::getPreferredStepSize() const