Skip to content

Commit

Permalink
Merge pull request #81 from cgraf78/fix-var-shadowing-compiler-warnings
Browse files Browse the repository at this point in the history
Fix compiler warnings about variable declaration shadowing
  • Loading branch information
adamstark authored Nov 18, 2024
2 parents 80152bf + 7744ee4 commit 8be726e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions AudioFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -879,10 +879,10 @@ uint32_t AudioFile<T>::getAiffSampleRate (const std::vector<uint8_t>& fileData,

//=============================================================
template <class T>
void AudioFile<T>::addSampleRateToAiffData (std::vector<uint8_t>& fileData, uint32_t sampleRate)
void AudioFile<T>::addSampleRateToAiffData (std::vector<uint8_t>& fileData, uint32_t sampleRateToAdd)
{
std::array<uint8_t, 10> sampleRateData;
AiffUtilities::encodeAiffSampleRate (static_cast<double> (sampleRate), sampleRateData.data());
AiffUtilities::encodeAiffSampleRate (static_cast<double> (sampleRateToAdd), sampleRateData.data());
fileData.insert (fileData.end(), sampleRateData.begin(), sampleRateData.end());
}

Expand Down Expand Up @@ -1169,8 +1169,8 @@ void AudioFile<T>::addInt32ToFileData (std::vector<uint8_t>& 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]);
}

//=============================================================
Expand Down

0 comments on commit 8be726e

Please sign in to comment.