mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 23:33:49 +01:00
Simplify iterations over WaveClips outside of WaveTrack/WaveClip; ...
... also add some const qualifiers
This commit is contained in:
committed by
Paul Licameli
parent
cb7872f980
commit
b548e641ae
@@ -73,12 +73,6 @@ bool CrossFader::CrossFadeMix(samplePtr buffer, sampleFormat format, sampleCount
|
||||
//we should use one of the size len, because this has already
|
||||
//been determined to be good in Mixer
|
||||
|
||||
//Get a pointer to the sequence in each clip.
|
||||
WaveClip * tmpclip = NULL;
|
||||
|
||||
WaveClipList::compatibility_iterator it;
|
||||
|
||||
|
||||
//Go through each clip, adding it to the total in the appropriate way.
|
||||
|
||||
//this could be 'optimized' by getting all of the sequences and then
|
||||
@@ -94,10 +88,8 @@ bool CrossFader::CrossFadeMix(samplePtr buffer, sampleFormat format, sampleCount
|
||||
|
||||
unsigned int i = 0;
|
||||
//Now, go through the clips and load up the vectors.
|
||||
for(it = mClips.GetFirst(); it; it = it->GetNext())
|
||||
for(const auto &tmpclip: mClips)
|
||||
{
|
||||
|
||||
tmpclip = it->GetData();
|
||||
tmpSequence[i] = tmpclip->GetSequence();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user