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

Method ApplyGlobalState

Source/SoundGen.cpp:604–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604void CSoundGen::ApplyGlobalState() // // //
605{
606 CSingleLock l(&m_csAPULock, TRUE); // // //
607 auto [Frame, Row] = IsPlaying() ? GetPlayerPos() : m_pTrackerView->GetSelectedPos(); // // //
608
609 CSongState state;
610 state.Retrieve(*m_pModule, GetPlayerTrack(), Frame, Row);
611
612 m_pSoundDriver->LoadSoundState(state);
613
614 m_iLastHighlight = m_pModule->GetSong(GetPlayerTrack())->GetHighlightAt(Frame, Row).First;
615}
616
617// // //
618void CSoundGen::OnTick() {

Callers

nothing calls this directly

Calls 5

GetSelectedPosMethod · 0.80
RetrieveMethod · 0.80
GetHighlightAtMethod · 0.80
GetSongMethod · 0.80
LoadSoundStateMethod · 0.45

Tested by

no test coverage detected