1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-04 18:53:24 +01:00

Some more const, some stl idioms, remove unused declaration

This commit is contained in:
Paul Licameli
2016-09-13 19:17:40 -04:00
parent 740ec8b72b
commit 39d514b183
14 changed files with 44 additions and 42 deletions

View File

@@ -50,7 +50,7 @@ void MixAndRender(TrackList *tracks, TrackFactory *trackFactory,
uLeft.reset(), uRight.reset();
// This function was formerly known as "Quick Mix".
Track *t;
const Track *t;
bool mono = false; /* flag if output can be mono without loosing anything*/
bool oneinput = false; /* flag set to true if there is only one input track
(mono or stereo) */
@@ -93,7 +93,7 @@ void MixAndRender(TrackList *tracks, TrackFactory *trackFactory,
while (t) {
if (t->GetSelected() && t->GetKind() == Track::Wave) {
waveArray.push_back(static_cast<WaveTrack *>(t));
waveArray.push_back(static_cast<const WaveTrack *>(t));
tstart = t->GetStartTime();
tend = t->GetEndTime();
if (tend > mixEndTime)