Match MxWavePresenter::DoneTickle (#604)

This commit is contained in:
Christian Semmler 2024-02-28 17:10:05 -05:00 committed by GitHub
parent f3f29e5536
commit dd1979154d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -218,7 +218,8 @@ void MxWavePresenter::DoneTickle()
MxS8 playedChunks = dwCurrentPlayCursor / m_chunkLength; MxS8 playedChunks = dwCurrentPlayCursor / m_chunkLength;
if (m_action->GetFlags() & MxDSAction::c_bit7 || m_action->GetFlags() & MxDSAction::c_looping || if (m_action->GetFlags() & MxDSAction::c_bit7 || m_action->GetFlags() & MxDSAction::c_looping ||
m_writtenChunks != playedChunks || m_lockSize + (m_chunkLength * playedChunks) <= dwCurrentPlayCursor) { (!(m_action->GetFlags() & MxDSAction::c_looping) &&
(m_writtenChunks != playedChunks || m_lockSize + (m_chunkLength * playedChunks) <= dwCurrentPlayCursor))) {
MxMediaPresenter::DoneTickle(); MxMediaPresenter::DoneTickle();
} }
} }