1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-22 23:30:07 +02:00

Fix incorrect comment, use auto

This commit is contained in:
Paul Licameli 2016-09-01 10:01:14 -04:00
parent 86f5f96b30
commit c9a9ad6220
2 changed files with 2 additions and 2 deletions

View File

@ -578,7 +578,7 @@ bool Sequence::Paste(sampleCount s, const Sequence *src)
const auto srcLastTwoLen = const auto srcLastTwoLen =
penultimate.f->GetLength() + penultimate.f->GetLength() +
srcBlock[srcNumBlocks - 1].f->GetLength(); srcBlock[srcNumBlocks - 1].f->GetLength();
const sampleCount rightSplit = splitBlock.f->GetLength() - splitPoint; const auto rightSplit = splitBlock.f->GetLength() - splitPoint;
const auto rightLen = rightSplit + srcLastTwoLen; const auto rightLen = rightSplit + srcLastTwoLen;
SampleBuffer sampleBuffer(std::max(leftLen, rightLen), mSampleFormat); SampleBuffer sampleBuffer(std::max(leftLen, rightLen), mSampleFormat);

View File

@ -95,7 +95,7 @@ bool EffectTwoPassSimpleMono::ProcessPass()
//ProcessOne() takes a track, transforms it to bunch of buffer-blocks, //ProcessOne() takes a track, transforms it to bunch of buffer-blocks,
//and executes ProcessSimpleMono on these blocks //and executes TwoBufferProcessPass1 or TwoBufferProcessPass2 on these blocks
bool EffectTwoPassSimpleMono::ProcessOne(WaveTrack * track, bool EffectTwoPassSimpleMono::ProcessOne(WaveTrack * track,
sampleCount start, sampleCount end) sampleCount start, sampleCount end)
{ {