diff --git a/AudioFile.h b/AudioFile.h index 39746ad..3c53243 100644 --- a/AudioFile.h +++ b/AudioFile.h @@ -879,10 +879,10 @@ uint32_t AudioFile::getAiffSampleRate (const std::vector& fileData, //============================================================= template -void AudioFile::addSampleRateToAiffData (std::vector& fileData, uint32_t sampleRate) +void AudioFile::addSampleRateToAiffData (std::vector& fileData, uint32_t sampleRateToAdd) { std::array sampleRateData; - AiffUtilities::encodeAiffSampleRate (static_cast (sampleRate), sampleRateData.data()); + AiffUtilities::encodeAiffSampleRate (static_cast (sampleRateToAdd), sampleRateData.data()); fileData.insert (fileData.end(), sampleRateData.begin(), sampleRateData.end()); } @@ -1169,8 +1169,8 @@ void AudioFile::addInt32ToFileData (std::vector& fileData, int32_t i bytes[3] = i & 0xFF; } - for (int i = 0; i < 4; i++) - fileData.push_back (bytes[i]); + for (int j = 0; j < 4; j++) + fileData.push_back (bytes[j]); } //=============================================================