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

Method SetSample

Source/WaveEditor.cpp:342–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342void CWaveEditorFDS::SetSample(int i, int s)
343{
344 ASSERT(m_pInstrument != NULL);
345 if (m_pInstrument->GetSample(i) != s) { // // //
346 m_pInstrument->SetSample(i, s);
347 CFamiTrackerDoc::GetDoc()->ModifyIrreversible();
348 }
349 FTEnv.GetSoundGenerator()->WaveChanged();
350}
351
352int CWaveEditorFDS::GetMaxSamples() const
353{

Callers 12

ReadFromModuleMethod · 0.45
DoReadFromFTIMethod · 0.45
GenerateWavesMethod · 0.45
ParseStringMethod · 0.45
ImportFileMethod · 0.45
OnPresetSineMethod · 0.45
OnPresetTriangleMethod · 0.45
OnPresetPulse50Method · 0.45
OnPresetPulse25Method · 0.45
OnPresetSawtoothMethod · 0.45
ParseWaveStringMethod · 0.45

Calls 4

ModifyIrreversibleMethod · 0.80
GetSampleMethod · 0.45
WaveChangedMethod · 0.45
GetSoundGeneratorMethod · 0.45

Tested by

no test coverage detected