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

Method LoadSoundState

Source/TempoCounter.cpp:113–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void CTempoCounter::LoadSoundState(const CSongState &state) {
114 if (state.Tempo != -1)
115 m_iTempo = state.Tempo;
116 if (state.GroovePos >= 0) {
117 if (auto pGroove = m_pModule->GetGroove(state.Speed)) {
118 LoadGroove(std::move(pGroove));
119 m_iGroovePosition = state.GroovePos;
120 UpdateGrooveSpeed();
121 }
122 }
123 else {
124 if (state.Speed >= 0)
125 m_iSpeed = state.Speed;
126 m_pCurrentGroove = nullptr;
127 }
128 SetupSpeed();
129}
130
131void CTempoCounter::SetupSpeed() {
132 if (m_iTempo) { // // //

Callers

nothing calls this directly

Calls 1

GetGrooveMethod · 0.80

Tested by

no test coverage detected