mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-19 17:40:15 +02:00
Alternative fix for Bug2346 without dependency cycles
This commit is contained in:
parent
d869f78ab9
commit
a9658e6ef7
@ -1592,9 +1592,12 @@ 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
|
||||||
|
@ -1505,6 +1505,8 @@ bool NyquistEffect::ProcessOne()
|
|||||||
}
|
}
|
||||||
|
|
||||||
outputTrack[i] = mFactory->NewWaveTrack(format, rate);
|
outputTrack[i] = mFactory->NewWaveTrack(format, rate);
|
||||||
|
if ( mCurTrack[i] )
|
||||||
|
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?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user