mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-18 08:48:17 +01:00
Rewrite many iterations over tracks and channels in various places
This commit is contained in:
@@ -501,18 +501,7 @@ bool MacroCommands::IsMono()
|
||||
return false;
|
||||
}
|
||||
|
||||
TrackListIterator iter(tracks);
|
||||
Track *t = iter.First();
|
||||
bool mono = true;
|
||||
while (t) {
|
||||
if (t->GetLinked()) {
|
||||
mono = false;
|
||||
break;
|
||||
}
|
||||
t = iter.Next();
|
||||
}
|
||||
|
||||
return mono;
|
||||
return ( tracks->Any() - &Track::IsLeader ).empty();
|
||||
}
|
||||
|
||||
wxString MacroCommands::BuildCleanFileName(const wxString &fileName, const wxString &extension)
|
||||
|
||||
Reference in New Issue
Block a user