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

Method UpdateFrameBanks

Source/Compiler.cpp:667–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667void CCompiler::UpdateFrameBanks()
668{
669 // Write bank numbers to frame lists (can only be used when bankswitching is used)
670
671 int Channels = m_ChannelOrder.GetChannelCount(); // // //
672
673 for (CChunk *pChunk : m_vFrameChunks) {
674 // Add bank data
675 for (int j = 0; j < Channels; ++j) {
676 unsigned char bank = GetObjectByLabel(pChunk->GetDataPointerTarget(j))->GetBank();
677 if (bank < PATTERN_SWITCH_BANK)
678 bank = PATTERN_SWITCH_BANK;
679 pChunk->SetupBankData(j + Channels, bank);
680 }
681 }
682}
683
684void CCompiler::UpdateSongBanks()
685{

Callers

nothing calls this directly

Calls 4

GetDataPointerTargetMethod · 0.80
SetupBankDataMethod · 0.80
GetChannelCountMethod · 0.45
GetBankMethod · 0.45

Tested by

no test coverage detected