mirror of
https://github.com/RPCS3/soundtouch.git
synced 2024-11-08 12:02:28 +01:00
Added <cfloat> header file, resolved compiler warnings
This commit is contained in:
parent
8f6f91f9b3
commit
f71db0d2c3
@ -53,6 +53,7 @@
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <cfloat>
|
||||
#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;
|
||||
|
Loading…
Reference in New Issue
Block a user