From: <sv...@op...> - 2024-07-15 20:55:11
|
Author: sagamusix Date: Mon Jul 15 22:54:58 2024 New Revision: 21189 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21189 Log: [Fix] MED: Apply more suitable lower period limits. Should fix Silly.med. The limit for software mixing may not be accurate. Modified: trunk/OpenMPT/soundlib/Load_med.cpp Modified: trunk/OpenMPT/soundlib/Load_med.cpp ============================================================================== --- trunk/OpenMPT/soundlib/Load_med.cpp Mon Jul 15 22:32:08 2024 (r21188) +++ trunk/OpenMPT/soundlib/Load_med.cpp Mon Jul 15 22:54:58 2024 (r21189) @@ -926,6 +926,7 @@ // - starkelsesirap.mmd0 (synth instruments) on the other hand don't need it // In MMD2 / MMD3, the mix flag is used instead. const bool hardwareMixSamples = (version < 2) || (version >= 2 && !(songHeader.flags2 & MMDSong::FLAG2_MIX)); + m_nMinPeriod = hardwareMixSamples ? (113 * 4) : (55 * 4); bool needInstruments = false; #ifndef NO_PLUGINS |