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

Method ProcessLabelTrack

libraries/lib-builtin-effects/SBSMSBase.cpp:205–212  ·  view source on GitHub ↗

Labels inside the affected region are moved to match the audio; labels after it are shifted along appropriately.

Source from the content-addressed store, hash-verified

203// Labels inside the affected region are moved to match the audio; labels after
204// it are shifted along appropriately.
205bool SBSMSBase::ProcessLabelTrack(LabelTrack *lt)
206{
207 auto warper1 = createTimeWarper(
208 mT0, mT1, (mT1 - mT0) * mTotalStretch, rateStart, rateEnd, rateSlideType);
209 RegionTimeWarper warper{ mT0, mT1, std::move(warper1) };
210 lt->WarpLabels(warper);
211 return true;
212}
213
214double SBSMSBase::getInvertedStretchedTime(double rateStart, double rateEnd, SlideType slideType, double outputTime)
215{

Callers

nothing calls this directly

Calls 3

createTimeWarperFunction · 0.85
moveFunction · 0.85
WarpLabelsMethod · 0.80

Tested by

no test coverage detected