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

Other methods of WaveTrack return void, will throw on failure instead

This commit is contained in:
Paul Licameli
2017-03-22 13:25:55 -04:00
parent e1473dfe76
commit 0d7250578d
12 changed files with 98 additions and 165 deletions

View File

@@ -575,8 +575,7 @@ bool EffectNoiseRemoval::ProcessOne(int count, WaveTrack * track,
double tLen = mOutputTrack->LongSamplesToTime(len);
// Filtering effects always end up with more data than they started with. Delete this 'tail'.
mOutputTrack->HandleClear(tLen, mOutputTrack->GetEndTime(), false, false);
bool bResult = track->ClearAndPaste(t0, t0 + tLen, mOutputTrack.get(), true, false);
wxASSERT(bResult); // TO DO: Actually handle this.
track->ClearAndPaste(t0, t0 + tLen, mOutputTrack.get(), true, false);
}
}