Author: sagamusix
Date: Sun Apr 7 22:18:38 2024
New Revision: 20523
URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20523
Log:
[Fix] When OpenMPT is configured to automatically open the audio device on start, autoplay needs to happen afterwards to avoid playing silence.
Modified:
trunk/OpenMPT/mptrack/Mptrack.cpp
Modified: trunk/OpenMPT/mptrack/Mptrack.cpp
==============================================================================
--- trunk/OpenMPT/mptrack/Mptrack.cpp Sun Apr 7 22:13:15 2024 (r20522)
+++ trunk/OpenMPT/mptrack/Mptrack.cpp Sun Apr 7 22:18:38 2024 (r20523)
@@ -1468,10 +1468,6 @@
pMainFrame->ShowWindow(m_nCmdShow);
pMainFrame->UpdateWindow();
- if(cmdInfo.m_autoPlay)
- {
- pMainFrame->PlayMod(pMainFrame->GetActiveDoc());
- }
EndWaitCursor();
@@ -1527,6 +1523,11 @@
pMainFrame->PlayPreview();
}
+ if(cmdInfo.m_autoPlay)
+ {
+ pMainFrame->PlayMod(pMainFrame->GetActiveDoc());
+ }
+
if(!TrackerSettings::Instance().FirstRun)
{
#if defined(MPT_ENABLE_UPDATE)
|