Alternative fix for Bug2346 without dependency cycles

This commit is contained in:
Paul Licameli 2020-03-06 17:24:26 -05:00
parent d869f78ab9
commit a9658e6ef7
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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?