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

Method ReplaceInterval

libraries/lib-wave-track/WaveTrack.cpp:3443–3451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3441}
3442
3443void WaveTrack::ReplaceInterval(
3444 const IntervalHolder& oldOne, const IntervalHolder& newOne)
3445{
3446 assert(newOne == oldOne || FindClip(*newOne) == Intervals().size());
3447 assert(oldOne->NChannels() == newOne->NChannels());
3448 RemoveInterval(oldOne);
3449 InsertInterval(newOne, false);
3450 newOne->SetName(oldOne->GetName());
3451}
3452
3453/*! @excsafety{Weak} -- Partial completion may leave clips at differing sample rates!
3454*/

Callers

nothing calls this directly

Calls 5

IntervalsFunction · 0.70
sizeMethod · 0.45
NChannelsMethod · 0.45
SetNameMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected