mirror of
https://github.com/azahar-emu/soundtouch
synced 2025-11-07 07:30:02 +01:00
Merge branch 'bpmdetect-warning-size_t-int' into 'master'
BPMDetect: Make conversion from size_t to int explicit See merge request soundtouch/soundtouch!7
This commit is contained in:
commit
1e56c65ea5
@ -561,7 +561,7 @@ float BPMDetect::getBpm()
|
|||||||
/// \return number of beats in the arrays.
|
/// \return number of beats in the arrays.
|
||||||
int BPMDetect::getBeats(float *pos, float *values, int max_num)
|
int BPMDetect::getBeats(float *pos, float *values, int max_num)
|
||||||
{
|
{
|
||||||
int num = beats.size();
|
int num = (int)beats.size();
|
||||||
if ((!pos) || (!values)) return num; // pos or values NULL, return just size
|
if ((!pos) || (!values)) return num; // pos or values NULL, return just size
|
||||||
|
|
||||||
for (int i = 0; (i < num) && (i < max_num); i++)
|
for (int i = 0; (i < num) && (i < max_num); i++)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user