| 186 | } |
| 187 | |
| 188 | bool 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 | |
| 224 | bool EffectChangeSpeed::TransferDataFromWindow(EffectSettings &) |
| 225 | { |
nothing calls this directly
no test coverage detected