Mercurial > hg > vamp-fanchirp
comparison FChTransformF0gram.cpp @ 27:9ebd08bdd168 spect
Avoid compiler warnings
author | Chris Cannam |
---|---|
date | Thu, 04 Oct 2018 16:00:50 +0100 |
parents | 430c730ae912 |
children | 60e2ef9fc5fc |
comparison
equal
deleted
inserted
replaced
26:390720c55c86 | 27:9ebd08bdd168 |
---|---|
24 | 24 |
25 #include "bqvec/Allocators.h" | 25 #include "bqvec/Allocators.h" |
26 | 26 |
27 using namespace breakfastquay; | 27 using namespace breakfastquay; |
28 | 28 |
29 #define DEBUG | 29 //#define DEBUG |
30 | 30 |
31 #define MAX(x, y) (((x) > (y)) ? (x) : (y)) | 31 #define MAX(x, y) (((x) > (y)) ? (x) : (y)) |
32 | 32 |
33 FChTransformF0gram::FChTransformF0gram(ProcessingMode mode, | 33 FChTransformF0gram::FChTransformF0gram(ProcessingMode mode, |
34 float inputSampleRate) : | 34 float inputSampleRate) : |
535 | 535 |
536 bool | 536 bool |
537 FChTransformF0gram::initialise(size_t channels, size_t stepSize, size_t blockSize) { | 537 FChTransformF0gram::initialise(size_t channels, size_t stepSize, size_t blockSize) { |
538 if (channels < getMinChannelCount() || | 538 if (channels < getMinChannelCount() || |
539 channels > getMaxChannelCount() || | 539 channels > getMaxChannelCount() || |
540 blockSize != m_blockSize/2 || | 540 int(blockSize) != m_blockSize/2 || |
541 stepSize != m_stepSize) { | 541 int(stepSize) != m_stepSize) { |
542 return false; | 542 return false; |
543 } | 543 } |
544 | 544 |
545 m_inputBuffer = allocate_and_zero<float>(m_blockSize); | 545 m_inputBuffer = allocate_and_zero<float>(m_blockSize); |
546 | 546 |