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

Method OnModDepthChange

Source/InstrumentEditorFDS.cpp:268–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268void CInstrumentEditorFDS::OnModDepthChange()
269{
270 if (m_pInstrument) {
271 int ModDepth = std::clamp(GetDlgItemInt(IDC_MOD_DEPTH), 0u, 63u);
272 if (m_pInstrument->GetModulationDepth() != ModDepth) {
273 m_pInstrument->SetModulationDepth(ModDepth); // // //
274 GetDocument()->ModifyIrreversible();
275 }
276 }
277 FTEnv.GetSoundGenerator()->WaveChanged();
278}
279
280void CInstrumentEditorFDS::OnModDelayChange()
281{

Callers

nothing calls this directly

Calls 6

clampFunction · 0.85
GetModulationDepthMethod · 0.80
SetModulationDepthMethod · 0.80
ModifyIrreversibleMethod · 0.80
WaveChangedMethod · 0.45
GetSoundGeneratorMethod · 0.45

Tested by

no test coverage detected