1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-13 08:06:32 +01:00

Fix Windows build differently

This commit is contained in:
Paul Licameli
2016-08-24 12:13:53 -04:00
parent 781de82d02
commit b5e410d987
9 changed files with 22 additions and 22 deletions

View File

@@ -110,13 +110,13 @@ bool CompareAudioCommand::Apply(CommandExecutionContext context)
while (position < s1)
{
// Get a block of data into the buffers
const auto block = limitSampleBufferSize(
auto block = limitSampleBufferSize(
mTrack0->GetBestBlockSize(position), s1 - position
);
mTrack0->Get((samplePtr)buff0, floatSample, position, block);
mTrack1->Get((samplePtr)buff1, floatSample, position, block);
for (auto buffPos = 0; buffPos < block; ++buffPos)
for (decltype(block) buffPos = 0; buffPos < block; ++buffPos)
{
if (CompareSample(buff0[buffPos], buff1[buffPos]) > errorThreshold)
{