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

Method GetSample

Source/PCMImport.cpp:328–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328std::shared_ptr<ft0cc::doc::dpcm_sample> CPCMImport::GetSample() { // // //
329 if (!m_pCachedSample || m_iCachedQuality != m_iQuality || m_iCachedVolume != m_iVolume) {
330 // // // Display wait cursor
331 CWaitCursor wait;
332
333 m_pCachedSample = ConvertFile(); // // //
334 }
335
336 m_iCachedQuality = m_iQuality;
337 m_iCachedVolume = m_iVolume;
338
339 return m_pCachedSample;
340}
341
342std::shared_ptr<ft0cc::doc::dpcm_sample> CPCMImport::ConvertFile() { // // //
343 // Converts a WAV file to a DPCM sample

Callers 4

AddWavetableMethod · 0.45
UpdateWaveMethod · 0.45
UpdateWaveBoxMethod · 0.45
StoreWavesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected