| 3441 | } |
| 3442 | |
| 3443 | void 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 | */ |