1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-08 14:13:57 +01:00

Clip (and track) colours now persists in .aup file.

This commit is contained in:
James Crook
2017-11-04 17:09:01 +00:00
parent 42c52de7f1
commit b48c6b0fd6
3 changed files with 20 additions and 2 deletions

View File

@@ -1523,6 +1523,7 @@ bool Effect::ProcessTrack(int count,
auto chans = std::min<unsigned>(mNumAudioOut, mNumChannels);
std::unique_ptr<WaveTrack> genLeft, genRight;
decltype(len) genLength = 0;
bool isGenerator = GetType() == EffectTypeGenerate;
bool isProcessor = GetType() == EffectTypeProcess;
@@ -1543,9 +1544,12 @@ bool Effect::ProcessTrack(int count,
// Create temporary tracks
genLeft = mFactory->NewWaveTrack(left->GetSampleFormat(), left->GetRate());
genLeft->SetWaveColorIndex( left->GetWaveColorIndex() );
if (right)
{
genRight = mFactory->NewWaveTrack(right->GetSampleFormat(), right->GetRate());
genRight->SetWaveColorIndex( right->GetWaveColorIndex() );
}
}