1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 23:33:49 +01:00

One less place that assumes at most two channels in a track

This commit is contained in:
Paul Licameli
2019-12-31 15:10:11 -05:00
parent 8abf3b490f
commit 460008f59d

View File

@@ -114,9 +114,7 @@ void DoMixAndRender
++ii;
}
auto mid = arr.end();
--mid;
if (pNewRight)
--mid;
std::advance( mid, -TrackList::Channels( pNewLeft ).size() );
std::rotate( arr.begin() + begin, mid, arr.end() );
tracks.Permute( arr );
}