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

Method SetDSample

Source/DSampleManager.cpp:50–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50bool CDSampleManager::SetDSample(unsigned Index, std::shared_ptr<ft0cc::doc::dpcm_sample> pSamp)
51{
52 if (Index >= m_pDSample.size())
53 return false;
54 bool Changed = m_pDSample[Index] != pSamp;
55 m_pDSample[Index] = std::move(pSamp);
56 return Changed;
57}
58
59bool CDSampleManager::IsSampleUsed(unsigned Index) const
60{

Callers 6

ImportInstrumentsMethod · 0.45
OpenDocumentOldMethod · 0.45
LoadDSamplesMethod · 0.45
ImportFileMethod · 0.45
InsertSampleMethod · 0.45
SetSelectedSampleMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected