| 602 | } |
| 603 | |
| 604 | void 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 | // // // |
| 618 | void CSoundGen::OnTick() { |
nothing calls this directly
no test coverage detected