From f71db0d2c340bd2bc5753bba9f5464147570c163 Mon Sep 17 00:00:00 2001 From: oparviainen Date: Wed, 8 Aug 2018 19:53:14 +0300 Subject: [PATCH] Added header file, resolved compiler warnings --- source/SoundTouch/BPMDetect.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/SoundTouch/BPMDetect.cpp b/source/SoundTouch/BPMDetect.cpp index 4f44e0c..9bcf5b9 100644 --- a/source/SoundTouch/BPMDetect.cpp +++ b/source/SoundTouch/BPMDetect.cpp @@ -53,6 +53,7 @@ #include #include #include +#include #include "FIFOSampleBuffer.h" #include "PeakFinder.h" #include "BPMDetect.h" @@ -392,7 +393,8 @@ void BPMDetect::updateBeatPos(int process_samples) if (peakVal > 0) { // add detected beat to end of "beats" vector - beats.push_back({ (float)(peakPos * posScale), (float)(peakVal * scale) }); + BEAT temp = { (float)(peakPos * posScale), (float)(peakVal * scale) }; + beats.push_back(temp); } peakVal = 0;