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

Method OnTimeCtrlUpdate

src/effects/ChangeSpeed.cpp:359–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359void EffectChangeSpeed::OnTimeCtrlUpdate(wxCommandEvent & evt)
360{
361 mFormat = NumericConverterFormats::Lookup(
362 FormatterContext::SampleRateContext(mProjectRate),
363 NumericConverterType_TIME(), evt.GetString()).Internal();
364
365 mpFromLengthCtrl->SetFormatName(mFormat);
366 // Update From/To Length controls (precision has changed).
367 mpToLengthCtrl->SetValue(mToLength);
368 mpFromLengthCtrl->SetValue(mFromLength);
369}
370
371// helper functions
372

Callers

nothing calls this directly

Calls 3

GetStringMethod · 0.45
SetFormatNameMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected