mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 00:20:06 +02:00
Don't set color index of temp tracks only pasted into other tracks
This commit is contained in:
parent
ac65d817ac
commit
37e176dc82
@ -1605,13 +1605,9 @@ bool Effect::ProcessTrack(int count,
|
|||||||
|
|
||||||
// Create temporary tracks
|
// Create temporary tracks
|
||||||
genLeft = mFactory->NewWaveTrack(left->GetSampleFormat(), left->GetRate());
|
genLeft = mFactory->NewWaveTrack(left->GetSampleFormat(), left->GetRate());
|
||||||
genLeft->SetWaveColorIndex( left->GetWaveColorIndex() );
|
|
||||||
|
|
||||||
if (right)
|
if (right)
|
||||||
{
|
|
||||||
genRight = mFactory->NewWaveTrack(right->GetSampleFormat(), right->GetRate());
|
genRight = mFactory->NewWaveTrack(right->GetSampleFormat(), right->GetRate());
|
||||||
genRight->SetWaveColorIndex( right->GetWaveColorIndex() );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Call the effect until we run out of input or delayed samples
|
// Call the effect until we run out of input or delayed samples
|
||||||
|
@ -1438,7 +1438,6 @@ bool NyquistEffect::ProcessOne()
|
|||||||
}
|
}
|
||||||
|
|
||||||
outputTrack[i] = mFactory->NewWaveTrack(format, rate);
|
outputTrack[i] = mFactory->NewWaveTrack(format, rate);
|
||||||
outputTrack[i]->SetWaveColorIndex( mCurTrack[i]->GetWaveColorIndex() );
|
|
||||||
|
|
||||||
// Clean the initial buffer states again for the get callbacks
|
// Clean the initial buffer states again for the get callbacks
|
||||||
// -- is this really needed?
|
// -- is this really needed?
|
||||||
|
@ -1165,7 +1165,6 @@ bool ControlToolBar::DoRecord(AudacityProject &project,
|
|||||||
// Pad the recording track with silence, up to the
|
// Pad the recording track with silence, up to the
|
||||||
// maximum time.
|
// maximum time.
|
||||||
auto newTrack = TrackFactory::Get( *p ).NewWaveTrack();
|
auto newTrack = TrackFactory::Get( *p ).NewWaveTrack();
|
||||||
newTrack->SetWaveColorIndex( wt->GetWaveColorIndex() );
|
|
||||||
newTrack->InsertSilence(0.0, t0 - endTime);
|
newTrack->InsertSilence(0.0, t0 - endTime);
|
||||||
newTrack->Flush();
|
newTrack->Flush();
|
||||||
pending->Clear(endTime, t0);
|
pending->Clear(endTime, t0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user