MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / OnModDelayChange

Method OnModDelayChange

Source/InstrumentEditorFDS.cpp:280–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280void CInstrumentEditorFDS::OnModDelayChange()
281{
282 if (m_pInstrument) {
283 int ModDelay = std::clamp(GetDlgItemInt(IDC_MOD_DELAY), 0u, 255u);
284 if (m_pInstrument->GetModulationDelay() != ModDelay) {
285 m_pInstrument->SetModulationDelay(ModDelay); // // //
286 GetDocument()->ModifyIrreversible();
287 }
288 }
289 FTEnv.GetSoundGenerator()->WaveChanged();
290}
291
292void CInstrumentEditorFDS::OnBnClickedCopyWave()
293{

Callers

nothing calls this directly

Calls 6

clampFunction · 0.85
GetModulationDelayMethod · 0.80
SetModulationDelayMethod · 0.80
ModifyIrreversibleMethod · 0.80
WaveChangedMethod · 0.45
GetSoundGeneratorMethod · 0.45

Tested by

no test coverage detected