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

Method TransferDataFromWindow

src/effects/ChangeSpeed.cpp:224–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224bool EffectChangeSpeed::TransferDataFromWindow(EffectSettings &)
225{
226 // mUIParent->TransferDataFromWindow() loses some precision, so save and restore it.
227 double exactPercent = m_PercentChange;
228 if (!mUIParent->Validate() || !mUIParent->TransferDataFromWindow())
229 {
230 return false;
231 }
232 m_PercentChange = exactPercent;
233
234 // TODO: just visit these effect settings the default way
235 SetConfig(GetDefinition(), PluginSettings::Private,
236 CurrentSettingsGroup(), wxT("TimeFormat"), mFormat.GET());
237 SetConfig(GetDefinition(), PluginSettings::Private,
238 CurrentSettingsGroup(), wxT("VinylChoice"), mFromVinyl);
239
240 return true;
241}
242
243// handler implementations for ChangeSpeedBase
244

Callers

nothing calls this directly

Calls 2

SetConfigFunction · 0.85
ValidateMethod · 0.45

Tested by

no test coverage detected