From f1300d9de586e3f4ef943bd403c4c49d89c85d10 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Thu, 18 Jan 2024 14:42:37 -0500 Subject: [PATCH] Match MxMusicManager::ResetStream --- LEGO1/omni/src/audio/mxmusicmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LEGO1/omni/src/audio/mxmusicmanager.cpp b/LEGO1/omni/src/audio/mxmusicmanager.cpp index 09fbc861..7a0684f8 100644 --- a/LEGO1/omni/src/audio/mxmusicmanager.cpp +++ b/LEGO1/omni/src/audio/mxmusicmanager.cpp @@ -81,7 +81,7 @@ MxResult MxMusicManager::ResetStream() ResetBuffer(); } - if (m_midiHdrP->dwFlags & (MHDR_DONE | MHDR_PREPARED)) { + if (m_midiHdrP->dwFlags & MHDR_DONE || m_midiHdrP->dwFlags & MHDR_PREPARED) { if (midiOutUnprepareHeader((HMIDIOUT) m_midiStreamH, m_midiHdrP, sizeof(MIDIHDR)) != MMSYSERR_NOERROR) goto done;