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

Method TransferDataToWindow

src/effects/ChangeSpeed.cpp:188–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188bool EffectChangeSpeed::TransferDataToWindow(const EffectSettings &)
189{
190 mbLoopDetect = true;
191
192 if (!mUIParent->TransferDataToWindow())
193 {
194 return false;
195 }
196
197 if (mFromVinyl == kVinyl_NA)
198 {
199 mFromVinyl = kVinyl_33AndAThird;
200 }
201
202 Update_Text_PercentChange();
203 Update_Text_Multiplier();
204 Update_Slider_PercentChange();
205 Update_TimeCtrl_ToLength();
206
207 // Set from/to Vinyl controls - mFromVinyl must be set first.
208 mpChoice_FromVinyl->SetSelection(mFromVinyl);
209 // Then update to get correct mToVinyl.
210 Update_Vinyl();
211 // Then update ToVinyl control.
212 mpChoice_ToVinyl->SetSelection(mToVinyl);
213
214 // Set From Length control.
215 // Set the format first so we can get sample accuracy.
216 mpFromLengthCtrl->SetFormatName(mFormat);
217 mpFromLengthCtrl->SetValue(mFromLength);
218
219 mbLoopDetect = false;
220
221 return true;
222}
223
224bool EffectChangeSpeed::TransferDataFromWindow(EffectSettings &)
225{

Callers

nothing calls this directly

Calls 3

SetSelectionMethod · 0.45
SetFormatNameMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected