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

Method Paste

libraries/lib-time-track/TimeTrack.cpp:197–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197void TimeTrack::Paste(double t, const Track &src)
198{
199 bool bOk = src.TypeSwitch<bool>([&](const TimeTrack &tt) {
200 auto sampleTime = 1.0 / GetRate(*this);
201 mEnvelope->PasteEnvelope(t, tt.mEnvelope.get(), sampleTime);
202 return true;
203 });
204
205 if (!bOk)
206 // THROW_INCONSISTENCY_EXCEPTION // ?
207 (void)0;// intentionally do nothing.
208}
209
210void TimeTrack::Silence(
211 double WXUNUSED(t0), double WXUNUSED(t1), ProgressReporter)

Callers 1

PasteIntoMethod · 0.45

Calls 3

PasteEnvelopeMethod · 0.80
GetRateFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected