diff --git a/src/sfizz/AudioBuffer.h b/src/sfizz/AudioBuffer.h index a7921d08..729e4c70 100644 --- a/src/sfizz/AudioBuffer.h +++ b/src/sfizz/AudioBuffer.h @@ -70,7 +70,7 @@ public: : numChannels(numChannels) , numFrames(numFrames) { - for (auto i = 0; i < numChannels; ++i) + for (size_t i = 0; i < numChannels; ++i) buffers[i] = std::make_unique(numFrames); } @@ -85,7 +85,7 @@ public: { bool returnedOK = true; - for (auto i = 0; i < numChannels; ++i) + for (size_t i = 0; i < numChannels; ++i) returnedOK &= buffers[i]->resize(newSize); if (returnedOK) diff --git a/src/sfizz/AudioSpan.h b/src/sfizz/AudioSpan.h index 0f2feca8..2e21e3f7 100644 --- a/src/sfizz/AudioSpan.h +++ b/src/sfizz/AudioSpan.h @@ -107,7 +107,7 @@ public: , numChannels(numChannels) { ASSERT(numChannels <= MaxChannels); - for (auto i = 0; i < numChannels; ++i) + for (size_t i = 0; i < numChannels; ++i) this->spans[i] = spans[i] + offset; } @@ -164,7 +164,7 @@ public: * @tparam Alignment the alignment block size for the platform * @param audioBuffer the source AudioBuffer. */ - template , typename = std::enable_if_t::value, int>> + template , typename = std::enable_if_t::value, int>> AudioSpan(AudioBuffer& audioBuffer) : numFrames(audioBuffer.getNumFrames()) , numChannels(audioBuffer.getNumChannels()) @@ -185,7 +185,7 @@ public: * @tparam Alignment the alignment block size for the platform * @param audioBuffer the source AudioBuffer. */ - template > + template > AudioSpan(AudioBuffer& audioBuffer) : numFrames(audioBuffer.getNumFrames()) , numChannels(audioBuffer.getNumChannels()) @@ -200,7 +200,7 @@ public: * * @param other the other AudioSpan */ - template > + template > AudioSpan(const AudioSpan& other) : numFrames(other.getNumFrames()) , numChannels(other.getNumChannels()) @@ -312,7 +312,7 @@ public: * * @param other the other AudioSpan */ - template > + template > void add(AudioSpan& other) { static_assert(!std::is_const::value, "Can't allow mutating operations on const AudioSpans"); @@ -329,7 +329,7 @@ public: * * @param other the other AudioSpan */ - template > + template > void copy(AudioSpan& other) { static_assert(!std::is_const::value, "Can't allow mutating operations on const AudioSpans");