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
|
||||
genLeft = mFactory->NewWaveTrack(left->GetSampleFormat(), left->GetRate());
|
||||
genLeft->SetWaveColorIndex( left->GetWaveColorIndex() );
|
||||
|
||||
if (right)
|
||||
if (right) {
|
||||
genRight = mFactory->NewWaveTrack(right->GetSampleFormat(), right->GetRate());
|
||||
genRight->SetWaveColorIndex( right->GetWaveColorIndex() );
|
||||
}
|
||||
}
|
||||
|
||||
// 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);
|
||||
if ( mCurTrack[i] )
|
||||
outputTrack[i]->SetWaveColorIndex( mCurTrack[i]->GetWaveColorIndex() );
|
||||
|
||||
// Clean the initial buffer states again for the get callbacks
|
||||
// -- is this really needed?
|
||||
|
|
Loading…
Reference in New Issue