From: <sv...@op...> - 2024-07-21 11:40:46
|
Author: sagamusix Date: Sun Jul 21 13:40:34 2024 New Revision: 21213 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21213 Log: Merged revision(s) 21188 from trunk/OpenMPT: [Fix] MED: Command 0F was not imported properly. ........ Merged revision(s) 21189 from trunk/OpenMPT: [Fix] MED: Apply more suitable lower period limits. Should fix Silly.med. The limit for software mixing may not be accurate. ........ Modified: branches/OpenMPT-1.29/ (props changed) branches/OpenMPT-1.29/soundlib/Load_med.cpp Modified: branches/OpenMPT-1.29/soundlib/Load_med.cpp ============================================================================== --- branches/OpenMPT-1.29/soundlib/Load_med.cpp Sun Jul 21 13:37:31 2024 (r21212) +++ branches/OpenMPT-1.29/soundlib/Load_med.cpp Sun Jul 21 13:40:34 2024 (r21213) @@ -434,7 +434,7 @@ if(m.param < 0x20) m.param = 0x20; #endif // MODPLUG_TRACKER - } else switch(m.command) + } else switch(m.param) { case 0xF1: // Play note twice m.command = CMD_MODCMDEX; @@ -742,6 +742,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; bool anySynthInstrs = false; |