MCPcopy Create free account
hub / github.com/audacity/audacity / ProcessAll

Method ProcessAll

libraries/lib-builtin-effects/TruncSilenceBase.cpp:300–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300bool TruncSilenceBase::ProcessAll()
301{
302 // Copy tracks
303 EffectOutputTracks outputs {
304 *mTracks, GetType(), { { mT0, mT1 } }, true, true
305 };
306
307 // Master list of silent regions.
308 // This list should always be kept in order.
309 RegionList silences;
310
311 if (FindSilences(silences, outputs.Get().Selected<const WaveTrack>()))
312 {
313 auto trackRange = outputs.Get().Any();
314 double totalCutLen = 0.0;
315 if (DoRemoval(silences, trackRange, 0, 1, totalCutLen))
316 {
317 mT1 -= totalCutLen;
318 outputs.Commit();
319 return true;
320 }
321 }
322
323 return false;
324}
325
326bool TruncSilenceBase::FindSilences(
327 RegionList& silences, const TrackIterRange<const WaveTrack>& range)

Callers

nothing calls this directly

Calls 3

GetMethod · 0.45
AnyMethod · 0.45
CommitMethod · 0.45

Tested by

no test coverage detected