mirror of
https://github.com/RPCS3/soundtouch.git
synced 2024-11-08 20:12:27 +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 <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <cfloat>
|
||||||
#include "FIFOSampleBuffer.h"
|
#include "FIFOSampleBuffer.h"
|
||||||
#include "PeakFinder.h"
|
#include "PeakFinder.h"
|
||||||
#include "BPMDetect.h"
|
#include "BPMDetect.h"
|
||||||
@ -392,7 +393,8 @@ void BPMDetect::updateBeatPos(int process_samples)
|
|||||||
if (peakVal > 0)
|
if (peakVal > 0)
|
||||||
{
|
{
|
||||||
// add detected beat to end of "beats" vector
|
// 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;
|
peakVal = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user