From dd1979154d32d9139b009ba9bcca842d1520157e Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Wed, 28 Feb 2024 17:10:05 -0500 Subject: [PATCH] Match MxWavePresenter::DoneTickle (#604) --- LEGO1/omni/src/audio/mxwavepresenter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LEGO1/omni/src/audio/mxwavepresenter.cpp b/LEGO1/omni/src/audio/mxwavepresenter.cpp index 1ecf6021..c8a29bef 100644 --- a/LEGO1/omni/src/audio/mxwavepresenter.cpp +++ b/LEGO1/omni/src/audio/mxwavepresenter.cpp @@ -218,7 +218,8 @@ void MxWavePresenter::DoneTickle() MxS8 playedChunks = dwCurrentPlayCursor / m_chunkLength; 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(); } }