| 133 | } |
| 134 | |
| 135 | void CSoundDriver::LoadSoundState(const CSongState &state) { |
| 136 | if (m_pTempoCounter) |
| 137 | m_pTempoCounter->LoadSoundState(state); |
| 138 | ForeachTrack([&] (CChannelHandler &ch, CTrackerChannel &tr, stChannelID id) { // // // |
| 139 | if (modfile_->GetChannelOrder().HasChannel(id)) |
| 140 | if (auto it = state.State.find(id); it != state.State.end()) |
| 141 | ch.ApplyChannelState(it->second); |
| 142 | }); |
| 143 | } |
| 144 | |
| 145 | void CSoundDriver::SetTempoCounter(std::shared_ptr<CTempoCounter> tempo) { |
| 146 | if (m_pTempoCounter = std::move(tempo); m_pTempoCounter) |
no test coverage detected