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

Method ProcessLabelTrack

libraries/lib-builtin-effects/ChangeSpeedBase.cpp:227–234  ·  view source on GitHub ↗

Labels are time-scaled linearly inside the affected region, and labels after the region are shifted along according to how the region size changed.

Source from the content-addressed store, hash-verified

225// Labels are time-scaled linearly inside the affected region, and labels after
226// the region are shifted along according to how the region size changed.
227bool ChangeSpeedBase::ProcessLabelTrack(LabelTrack* lt)
228{
229 RegionTimeWarper warper { mT0, mT1,
230 std::make_unique<LinearTimeWarper>(
231 mT0, mT0, mT1, mT0 + (mT1 - mT0) * mFactor) };
232 lt->WarpLabels(warper);
233 return true;
234}
235
236// ProcessOne() takes a track, transforms it to bunch of buffer-blocks,
237// and calls libsamplerate code on these blocks.

Callers

nothing calls this directly

Calls 1

WarpLabelsMethod · 0.80

Tested by

no test coverage detected