mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-11 17:05:26 +01:00
Exception safety in: some effects and generators...
... Those that directly call WaveTrack functions in their Process() routines, which might throw exceptions for disk space exhaustion.
This commit is contained in:
@@ -159,14 +159,17 @@ bool EffectSoundTouch::ProcessWithTimeWarper(const TimeWarper &warper)
|
||||
if (bGoodResult)
|
||||
ReplaceProcessedTracks(bGoodResult);
|
||||
|
||||
mSoundTouch.reset();
|
||||
|
||||
// mT0 = mCurT0;
|
||||
// mT1 = mCurT0 + m_maxNewLength; // Update selection.
|
||||
|
||||
return bGoodResult;
|
||||
}
|
||||
|
||||
void EffectSoundTouch::End()
|
||||
{
|
||||
mSoundTouch.reset();
|
||||
}
|
||||
|
||||
//ProcessOne() takes a track, transforms it to bunch of buffer-blocks,
|
||||
//and executes ProcessSoundTouch on these blocks
|
||||
bool EffectSoundTouch::ProcessOne(WaveTrack *track,
|
||||
@@ -345,7 +348,7 @@ bool EffectSoundTouch::ProcessStereo(
|
||||
return true;
|
||||
}
|
||||
|
||||
bool EffectSoundTouch::ProcessStereoResults(const unsigned int outputCount,
|
||||
bool EffectSoundTouch::ProcessStereoResults(const size_t outputCount,
|
||||
WaveTrack* outputLeftTrack,
|
||||
WaveTrack* outputRightTrack)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user