Hello community, here is the log from the commit of package libopenmpt for openSUSE:Factory checked in at 2019-02-24 16:58:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libopenmpt (Old) and /work/SRC/openSUSE:Factory/.libopenmpt.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libopenmpt" Sun Feb 24 16:58:27 2019 rev:17 rq:673313 version:0.4.3 Changes: -------- --- /work/SRC/openSUSE:Factory/libopenmpt/libopenmpt.changes 2019-01-26 22:18:27.499048054 +0100 +++ /work/SRC/openSUSE:Factory/.libopenmpt.new.28833/libopenmpt.changes 2019-02-24 16:58:34.184818177 +0100 @@ -1,0 +2,12 @@ +Mon Feb 11 11:05:01 UTC 2019 - Martin Herkt <[email protected]> + +- Update to version 0.4.3: + * [Sec] Possible crash due to null-pointer access when doing a + portamento from an OPL instrument to an empty instrument note + map slot. + * IT: Various fixes for note-off + instrument number in + Old Effects mode. + * MO3: Import IT row highlights as written by MO3 2.4.1.2 or + newer. Required for modules using modern tempo mode. + +------------------------------------------------------------------- Old: ---- libopenmpt-0.4.2+release.autotools.tar.gz New: ---- libopenmpt-0.4.3+release.autotools.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libopenmpt.spec ++++++ --- /var/tmp/diff_new_pack.GBskzQ/_old 2019-02-24 16:58:35.300817646 +0100 +++ /var/tmp/diff_new_pack.GBskzQ/_new 2019-02-24 16:58:35.304817644 +0100 @@ -21,7 +21,7 @@ %define libopenmpt_modplug libopenmpt_modplug1 %bcond_without mpg123 Name: libopenmpt -Version: 0.4.2 +Version: 0.4.3 Release: 0 Summary: C++ and C library to decode tracker music files License: BSD-3-Clause ++++++ libopenmpt-0.4.2+release.autotools.tar.gz -> libopenmpt-0.4.3+release.autotools.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/common/mptAlloc.cpp new/libopenmpt-0.4.3+release.autotools/common/mptAlloc.cpp --- old/libopenmpt-0.4.2+release.autotools/common/mptAlloc.cpp 2018-11-30 11:10:47.000000000 +0100 +++ new/libopenmpt-0.4.3+release.autotools/common/mptAlloc.cpp 2019-02-02 22:11:45.000000000 +0100 @@ -56,7 +56,7 @@ aligned_raw_memory aligned_alloc_impl(std::size_t size, std::size_t count, std::size_t alignment) { - #if MPT_CXX_AT_LEAST(17) && (!MPT_COMPILER_MSVC && !MPT_GCC_BEFORE(8,1,0) && !MPT_CLANG_BEFORE(5,0,0)) && !(MPT_COMPILER_CLANG && defined(__GLIBCXX__)) && !MPT_OS_EMSCRIPTEN + #if MPT_CXX_AT_LEAST(17) && (!MPT_COMPILER_MSVC && !MPT_GCC_BEFORE(8,1,0) && !MPT_CLANG_BEFORE(5,0,0)) && !(MPT_COMPILER_CLANG && defined(__GLIBCXX__)) && !(MPT_COMPILER_CLANG && MPT_OS_MACOSX_OR_IOS) && !MPT_OS_EMSCRIPTEN std::size_t space = count * size; void* mem = std::aligned_alloc(alignment, space); if(!mem) @@ -103,7 +103,7 @@ void aligned_free(aligned_raw_memory raw) { - #if MPT_CXX_AT_LEAST(17) && (!MPT_COMPILER_MSVC && !MPT_GCC_BEFORE(8,1,0) && !MPT_CLANG_BEFORE(5,0,0)) && !(MPT_COMPILER_CLANG && defined(__GLIBCXX__)) && !MPT_OS_EMSCRIPTEN + #if MPT_CXX_AT_LEAST(17) && (!MPT_COMPILER_MSVC && !MPT_GCC_BEFORE(8,1,0) && !MPT_CLANG_BEFORE(5,0,0)) && !(MPT_COMPILER_CLANG && defined(__GLIBCXX__)) && !(MPT_COMPILER_CLANG && MPT_OS_MACOSX_OR_IOS) && !MPT_OS_EMSCRIPTEN std::free(raw.mem); #elif MPT_COMPILER_MSVC _aligned_free(raw.mem); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/common/mptAlloc.h new/libopenmpt-0.4.3+release.autotools/common/mptAlloc.h --- old/libopenmpt-0.4.2+release.autotools/common/mptAlloc.h 2018-11-03 12:21:04.000000000 +0100 +++ new/libopenmpt-0.4.3+release.autotools/common/mptAlloc.h 2019-02-02 22:10:15.000000000 +0100 @@ -100,7 +100,7 @@ -#if MPT_CXX_AT_LEAST(17) && !(MPT_COMPILER_CLANG && defined(__GLIBCXX__)) +#if MPT_CXX_AT_LEAST(17) && !(MPT_COMPILER_CLANG && defined(__GLIBCXX__)) && !(MPT_COMPILER_CLANG && MPT_OS_MACOSX_OR_IOS) using std::launder; #else template <class T> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/common/versionNumber.h new/libopenmpt-0.4.3+release.autotools/common/versionNumber.h --- old/libopenmpt-0.4.2+release.autotools/common/versionNumber.h 2019-01-22 09:55:15.000000000 +0100 +++ new/libopenmpt-0.4.3+release.autotools/common/versionNumber.h 2019-02-10 21:01:40.000000000 +0100 @@ -20,8 +20,8 @@ //Version definitions. The only thing that needs to be changed when changing version number. #define VER_MAJORMAJOR 1 #define VER_MAJOR 28 -#define VER_MINOR 02 -#define VER_MINORMINOR 04 +#define VER_MINOR 03 +#define VER_MINORMINOR 00 //Numerical value of the version. #define MPT_VERSION_CURRENT MAKE_VERSION_NUMERIC(VER_MAJORMAJOR,VER_MAJOR,VER_MINOR,VER_MINORMINOR) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/configure new/libopenmpt-0.4.3+release.autotools/configure --- old/libopenmpt-0.4.2+release.autotools/configure 2019-01-22 10:21:20.000000000 +0100 +++ new/libopenmpt-0.4.3+release.autotools/configure 2019-02-11 06:40:08.000000000 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for libopenmpt 0.4.2+release.autotools. +# Generated by GNU Autoconf 2.69 for libopenmpt 0.4.3+release.autotools. # # Report bugs to <https://bugs.openmpt.org/>. # @@ -590,8 +590,8 @@ # Identity of this package. PACKAGE_NAME='libopenmpt' PACKAGE_TARNAME='libopenmpt' -PACKAGE_VERSION='0.4.2+release.autotools' -PACKAGE_STRING='libopenmpt 0.4.2+release.autotools' +PACKAGE_VERSION='0.4.3+release.autotools' +PACKAGE_STRING='libopenmpt 0.4.3+release.autotools' PACKAGE_BUGREPORT='https://bugs.openmpt.org/' PACKAGE_URL='https://lib.openmpt.org/' @@ -1485,7 +1485,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libopenmpt 0.4.2+release.autotools to adapt to many kinds of systems. +\`configure' configures libopenmpt 0.4.3+release.autotools to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1556,7 +1556,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libopenmpt 0.4.2+release.autotools:";; + short | recursive ) echo "Configuration of libopenmpt 0.4.3+release.autotools:";; esac cat <<\_ACEOF @@ -1756,7 +1756,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libopenmpt configure 0.4.2+release.autotools +libopenmpt configure 0.4.3+release.autotools generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2246,7 +2246,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libopenmpt $as_me 0.4.2+release.autotools, which was +It was created by libopenmpt $as_me 0.4.3+release.autotools, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -3117,7 +3117,7 @@ # Define the identity of the package. PACKAGE='libopenmpt' - VERSION='0.4.2+release.autotools' + VERSION='0.4.3+release.autotools' cat >>confdefs.h <<_ACEOF @@ -17281,13 +17281,13 @@ -$as_echo "#define MPT_SVNURL \"https://source.openmpt.org/svn/openmpt/tags/libopenmpt-0.4.2\"" >>confdefs.h +$as_echo "#define MPT_SVNURL \"https://source.openmpt.org/svn/openmpt/tags/libopenmpt-0.4.3\"" >>confdefs.h -$as_echo "#define MPT_SVNVERSION \"11243\"" >>confdefs.h +$as_echo "#define MPT_SVNVERSION \"11358\"" >>confdefs.h -$as_echo "#define MPT_SVNDATE \"2019-01-22T08:59:00.771884Z\"" >>confdefs.h +$as_echo "#define MPT_SVNDATE \"2019-02-11T05:32:52.673531Z\"" >>confdefs.h $as_echo "#define MPT_PACKAGE true" >>confdefs.h @@ -23527,7 +23527,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libopenmpt $as_me 0.4.2+release.autotools, which was +This file was extended by libopenmpt $as_me 0.4.3+release.autotools, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -23594,7 +23594,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -libopenmpt config.status 0.4.2+release.autotools +libopenmpt config.status 0.4.3+release.autotools configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/configure.ac new/libopenmpt-0.4.3+release.autotools/configure.ac --- old/libopenmpt-0.4.2+release.autotools/configure.ac 2019-01-22 10:21:10.000000000 +0100 +++ new/libopenmpt-0.4.3+release.autotools/configure.ac 2019-02-11 06:39:59.000000000 +0100 @@ -1,4 +1,4 @@ -AC_INIT([libopenmpt], [0.4.2+release.autotools], [https://bugs.openmpt.org/], [libopenmpt], [https://lib.openmpt.org/]) +AC_INIT([libopenmpt], [0.4.3+release.autotools], [https://bugs.openmpt.org/], [libopenmpt], [https://lib.openmpt.org/]) AC_PREREQ([2.68]) AC_CONFIG_MACRO_DIR([m4]) @@ -27,9 +27,9 @@ AC_SUBST([LIBOPENMPT_LTVER_REVISION]) AC_SUBST([LIBOPENMPT_LTVER_AGE]) -AC_DEFINE([MPT_SVNURL], ["https://source.openmpt.org/svn/openmpt/tags/libopenmpt-0.4.2"], [svn version]) -AC_DEFINE([MPT_SVNVERSION], ["11243"], [svn version]) -AC_DEFINE([MPT_SVNDATE], ["2019-01-22T08:59:00.771884Z"], [svn date]) +AC_DEFINE([MPT_SVNURL], ["https://source.openmpt.org/svn/openmpt/tags/libopenmpt-0.4.3"], [svn version]) +AC_DEFINE([MPT_SVNVERSION], ["11358"], [svn version]) +AC_DEFINE([MPT_SVNDATE], ["2019-02-11T05:32:52.673531Z"], [svn date]) AC_DEFINE([MPT_PACKAGE], [true], [is package]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/libopenmpt/dox/changelog.md new/libopenmpt-0.4.3+release.autotools/libopenmpt/dox/changelog.md --- old/libopenmpt-0.4.2+release.autotools/libopenmpt/dox/changelog.md 2019-01-22 09:58:58.000000000 +0100 +++ new/libopenmpt-0.4.3+release.autotools/libopenmpt/dox/changelog.md 2019-02-11 06:32:46.000000000 +0100 @@ -5,6 +5,20 @@ For fully detailed change log, please see the source repository directly. This is just a high-level summary. +### libopenmpt 0.4.3 (2019-02-11) + + * [**Sec**] Possible crash due to null-pointer access when doing a portamento + from an OPL instrument to an empty instrument note map slot (r11348). + + * [**Bug**] libopenmpt did not compile on Apple platforms in C++17 mode. + + * IT: Various fixes for note-off + instrument number in Old Effects mode. + * MO3: Import IT row highlights as written by MO3 2.4.1.2 or newer. Required + for modules using modern tempo mode. + + * miniz: Update to v2.0.8 (2018-09-19). + * stb_vorbis: Update to v1.15 (2019-02-07). + ### libopenmpt 0.4.2 (2019-01-22) * [**Sec**] DSM: Assertion failure during file parsing with debug STLs diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/libopenmpt/libopenmpt_version.h new/libopenmpt-0.4.3+release.autotools/libopenmpt/libopenmpt_version.h --- old/libopenmpt-0.4.2+release.autotools/libopenmpt/libopenmpt_version.h 2019-01-22 09:58:58.000000000 +0100 +++ new/libopenmpt-0.4.3+release.autotools/libopenmpt/libopenmpt_version.h 2019-02-11 06:32:46.000000000 +0100 @@ -19,7 +19,7 @@ /*! \brief libopenmpt minor version number */ #define OPENMPT_API_VERSION_MINOR 4 /*! \brief libopenmpt patch version number */ -#define OPENMPT_API_VERSION_PATCH 2 +#define OPENMPT_API_VERSION_PATCH 3 /*! \brief libopenmpt pre-release tag */ #define OPENMPT_API_VERSION_PREREL "" /*! \brief libopenmpt pre-release flag */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/libopenmpt/libopenmpt_version.mk new/libopenmpt-0.4.3+release.autotools/libopenmpt/libopenmpt_version.mk --- old/libopenmpt-0.4.2+release.autotools/libopenmpt/libopenmpt_version.mk 2019-01-22 09:58:58.000000000 +0100 +++ new/libopenmpt-0.4.3+release.autotools/libopenmpt/libopenmpt_version.mk 2019-02-11 06:32:46.000000000 +0100 @@ -1,8 +1,8 @@ LIBOPENMPT_VERSION_MAJOR=0 LIBOPENMPT_VERSION_MINOR=4 -LIBOPENMPT_VERSION_PATCH=2 +LIBOPENMPT_VERSION_PATCH=3 LIBOPENMPT_VERSION_PREREL= LIBOPENMPT_LTVER_CURRENT=1 -LIBOPENMPT_LTVER_REVISION=2 +LIBOPENMPT_LTVER_REVISION=3 LIBOPENMPT_LTVER_AGE=1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/man/openmpt123.1 new/libopenmpt-0.4.3+release.autotools/man/openmpt123.1 --- old/libopenmpt-0.4.2+release.autotools/man/openmpt123.1 2019-01-22 10:21:10.000000000 +0100 +++ new/libopenmpt-0.4.3+release.autotools/man/openmpt123.1 2019-02-11 06:39:58.000000000 +0100 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4. -.TH OPENMPT123 "1" "January 2019" "openmpt123 v0.4.2" "User Commands" +.TH OPENMPT123 "1" "February 2019" "openmpt123 v0.4.3" "User Commands" .SH NAME openmpt123 - command line module music player based on libopenmpt .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/soundlib/Fastmix.cpp new/libopenmpt-0.4.3+release.autotools/soundlib/Fastmix.cpp --- old/libopenmpt-0.4.2+release.autotools/soundlib/Fastmix.cpp 2018-09-15 15:07:34.000000000 +0200 +++ new/libopenmpt-0.4.3+release.autotools/soundlib/Fastmix.cpp 2019-02-10 21:48:50.000000000 +0100 @@ -63,7 +63,7 @@ // If there is no interpolation happening, there is no lookahead happening the sample read-out is exact. if(chn.dwFlags[CHN_LOOP] && chn.resamplingMode != SRCMODE_NEAREST) { - const bool inSustainLoop = chn.InSustainLoop(); + const bool inSustainLoop = chn.InSustainLoop() && chn.nLoopStart == chn.pModSample->nSustainStart && chn.nLoopEnd == chn.pModSample->nSustainEnd; // Do not enable wraparound magic if we're previewing a custom loop! if(inSustainLoop || chn.nLoopEnd == chn.pModSample->nLoopEnd) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/soundlib/Load_it.cpp new/libopenmpt-0.4.3+release.autotools/soundlib/Load_it.cpp --- old/libopenmpt-0.4.2+release.autotools/soundlib/Load_it.cpp 2018-12-16 23:16:10.000000000 +0100 +++ new/libopenmpt-0.4.3+release.autotools/soundlib/Load_it.cpp 2019-01-28 19:49:11.000000000 +0100 @@ -1415,7 +1415,7 @@ if(!compatibilityExport) { - // This way, we indicate that the file will most likely contain OpenMPT hacks. Compatibility export puts 0 here. + // This way, we indicate that the file might contain OpenMPT hacks. Compatibility export puts 0 here. memcpy(&itHeader.reserved, "OMPT", 4); } } @@ -1428,17 +1428,17 @@ if(m_SongFlags[SONG_ITCOMPATGXX]) itHeader.flags |= ITFileHeader::itCompatGxx; if(m_SongFlags[SONG_EXFILTERRANGE] && !compatibilityExport) itHeader.flags |= ITFileHeader::extendedFilterRange; - itHeader.globalvol = (uint8)(m_nDefaultGlobalVolume >> 1); - itHeader.mv = (uint8)MIN(m_nSamplePreAmp, 128u); - itHeader.speed = (uint8)MIN(m_nDefaultSpeed, 255u); - itHeader.tempo = (uint8)MIN(m_nDefaultTempo.GetInt(), 255u); //Limit this one to 255, we save the real one as an extension below. + itHeader.globalvol = static_cast<uint8>(m_nDefaultGlobalVolume / 2u); + itHeader.mv = static_cast<uint8>(std::min(m_nSamplePreAmp, uint32(128))); + itHeader.speed = mpt::saturate_cast<uint8>(m_nDefaultSpeed); + itHeader.tempo = mpt::saturate_cast<uint8>(m_nDefaultTempo.GetInt()); // We save the real tempo in an extension below if it exceeds 255. itHeader.sep = 128; // pan separation // IT doesn't have a per-instrument Pitch Wheel Depth setting, so we just store the first non-zero PWD setting in the header. - for(INSTRUMENTINDEX ins = 1; ins < GetNumInstruments(); ins++) + for(INSTRUMENTINDEX ins = 1; ins <= GetNumInstruments(); ins++) { if(Instruments[ins] != nullptr && Instruments[ins]->midiPWD != 0) { - itHeader.pwd = (uint8)mpt::abs(Instruments[ins]->midiPWD); + itHeader.pwd = static_cast<uint8>(mpt::abs(Instruments[ins]->midiPWD)); break; } } @@ -1613,7 +1613,7 @@ uint16 writeSize = 0; uint16le patinfo[4]; patinfo[0] = 0; - patinfo[1] = (uint16)writeRows; + patinfo[1] = static_cast<uint16>(writeRows); patinfo[2] = 0; patinfo[3] = 0; @@ -1744,11 +1744,11 @@ if (b != chnmask[ch]) { chnmask[ch] = b; - buf[len++] = uint8((ch + 1) | IT_bitmask_patternChanEnabled_c); + buf[len++] = static_cast<uint8>((ch + 1) | IT_bitmask_patternChanEnabled_c); buf[len++] = b; } else { - buf[len++] = uint8(ch + 1); + buf[len++] = static_cast<uint8>(ch + 1); } if (b & 1) buf[len++] = note; if (b & 2) buf[len++] = m->instr; @@ -1790,7 +1790,7 @@ bool compress = false; #endif // MODPLUG_TRACKER // Old MPT, DUMB and probably other libraries will only consider the IT2.15 compression flag if the header version also indicates IT2.15. - // MilkyTracker <= 0.90.85 will only assume IT2.15 compression with cmwt == 0x215, ignoring the delta flag completely. + // MilkyTracker <= 0.90.85 assumes IT2.15 compression with cmwt == 0x215, ignoring the delta flag completely. itss.ConvertToIT(sample, GetType(), compress, itHeader.cmwt >= 0x215, GetType() == MOD_TYPE_MPT); const bool isExternal = itss.cvt == ITSample::cvtExternalSample; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/soundlib/Load_mo3.cpp new/libopenmpt-0.4.3+release.autotools/soundlib/Load_mo3.cpp --- old/libopenmpt-0.4.2+release.autotools/soundlib/Load_mo3.cpp 2019-01-04 21:18:42.000000000 +0100 +++ new/libopenmpt-0.4.3+release.autotools/soundlib/Load_mo3.cpp 2019-02-07 21:15:04.000000000 +0100 @@ -194,22 +194,29 @@ panEnv.ConvertToMPT(mptIns.PanEnv, 0); pitchEnv.ConvertToMPT(mptIns.PitchEnv, 5); mptIns.nFadeOut = fadeOut; + if(midiChannel >= 128) { // Plugin mptIns.nMixPlug = midiChannel - 127; } else if(midiChannel < 17 && (flags & playOnMIDI)) { - // XM / IT with recent encoder + // XM, or IT with recent encoder mptIns.nMidiChannel = midiChannel + MidiFirstChannel; } else if(midiChannel > 0 && midiChannel < 17) { // IT encoded with MO3 version prior to 2.4.1 (yes, channel 0 is represented the same way as "no channel") mptIns.nMidiChannel = midiChannel + MidiFirstChannel; } - mptIns.wMidiBank = midiBank; - mptIns.nMidiProgram = midiPatch; - mptIns.midiPWD = midiBend; + if(mptIns.nMidiChannel != MidiNoChannel) + { + if(mptIns.wMidiBank < 128) + mptIns.wMidiBank = midiBank + 1; + if(mptIns.nMidiProgram < 128) + mptIns.nMidiProgram = midiPatch + 1; + mptIns.midiPWD = midiBend; + } + if(type == MOD_TYPE_IT) mptIns.nGlobalVol = std::min<uint8>(globalVol, 128) / 2u; if(panning <= 256) @@ -1811,6 +1818,10 @@ break; } break; + case MagicLE("PRHI"): + m_nDefaultRowsPerBeat = chunk.ReadUint8(); + m_nDefaultRowsPerMeasure = chunk.ReadUint8(); + break; case MagicLE("MIDI"): // Full MIDI config chunk.ReadStruct<MIDIMacroConfigData>(m_MidiCfg); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/soundlib/Snd_defs.h new/libopenmpt-0.4.3+release.autotools/soundlib/Snd_defs.h --- old/libopenmpt-0.4.2+release.autotools/soundlib/Snd_defs.h 2019-01-20 20:23:09.000000000 +0100 +++ new/libopenmpt-0.4.3+release.autotools/soundlib/Snd_defs.h 2019-01-28 23:02:51.000000000 +0100 @@ -513,6 +513,7 @@ kReleaseNodePastSustainBug, // OpenMPT 1.23.01.02 / r4009 broke release nodes past the sustain point, fixed in OpenMPT 1.28 kFT2NoteDelayWithoutInstr, // Sometime between OpenMPT 1.18.03.00 and 1.19.01.00, delayed instrument-less notes in XM started recalling the default sample volume and panning kOPLFlexibleNoteOff, // Full control after note-off over OPL voices, ^^^ sends note cut instead of just note-off + kITInstrWithNoteOffOldEffects, // Instrument number with note-off recalls default volume - special cases with Old Effects enabled // Add new play behaviours here. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/soundlib/Snd_fx.cpp new/libopenmpt-0.4.3+release.autotools/soundlib/Snd_fx.cpp --- old/libopenmpt-0.4.2+release.autotools/soundlib/Snd_fx.cpp 2019-01-20 20:23:09.000000000 +0100 +++ new/libopenmpt-0.4.3+release.autotools/soundlib/Snd_fx.cpp 2019-02-01 22:17:25.000000000 +0100 @@ -1327,6 +1327,7 @@ { const ModInstrument *pIns = instr <= GetNumInstruments() ? Instruments[instr] : nullptr; const ModSample *pSmp = &Samples[instr]; + const auto oldInsVol = chn.nInsVol; ModCommand::NOTE note = chn.nNewNote; if(note == NOTE_NONE && m_playBehaviour[kITInstrWithoutNote]) return; @@ -1491,9 +1492,12 @@ if(m_playBehaviour[kITEnvelopeReset]) { const bool insNumber = (instr != 0); + // IT compatibility: Note-off with instrument number + Old Effects retriggers envelopes. + // Test case: ResetEnvNoteOffOldFx.it + const bool isKeyOff = chn.dwFlags[CHN_NOTEFADE | CHN_KEYOFF] || (chn.rowCommand.note == NOTE_KEYOFF && m_playBehaviour[kITInstrWithNoteOffOldEffects]); reset = (!chn.nLength || (insNumber && bPorta && m_SongFlags[SONG_ITCOMPATGXX]) - || (insNumber && !bPorta && chn.dwFlags[CHN_NOTEFADE | CHN_KEYOFF] && m_SongFlags[SONG_ITOLDEFFECTS])); + || (insNumber && !bPorta && isKeyOff && m_SongFlags[SONG_ITOLDEFFECTS])); // NOTE: IT2.14 with SB/GUS/etc. output is different. We are going after IT's WAV writer here. // For SB/GUS/etc. emulation, envelope carry should only apply when the NNA isn't set to "Note Cut". // Test case: CarryNNA.it @@ -1597,6 +1601,21 @@ chn.increment.Set(0); } + // IT compatibility: Note-off with instrument number + Old Effects retriggers envelopes. + // If the instrument changes, keep playing the previous sample, but load the new instrument's envelopes. + // Test case: ResetEnvNoteOffOldFx.it + if(chn.rowCommand.note == NOTE_KEYOFF && m_playBehaviour[kITInstrWithNoteOffOldEffects] && m_SongFlags[SONG_ITOLDEFFECTS] && sampleChanged) + { + if(chn.pModSample) + { + chn.dwFlags |= (chn.pModSample->uFlags & CHN_SAMPLEFLAGS); + } + chn.nInsVol = oldInsVol; + chn.nVolume = pSmp->nVolume; + if(pSmp->uFlags[CHN_PANNING]) chn.nPan = pSmp->nPan; + return; + } + chn.pModSample = pSmp; chn.nLength = pSmp->nLength; chn.nLoopStart = pSmp->nLoopStart; @@ -1622,13 +1641,11 @@ // Don't reset finetune changed by "set finetune" command. // Test case: finetune.xm, finetune.mod // But *do* change the finetune if we switch to a different sample, to fix - // Miranda`s axe by Jamson (jam007.xm) - this file doesn't use compatible play mode, - // so we may want to use IsCompatibleMode instead if further problems arise. + // Miranda`s axe by Jamson (jam007.xm). chn.nC5Speed = pSmp->nC5Speed; chn.nFineTune = pSmp->nFineTune; } - chn.nTranspose = pSmp->RelativeTone; // FT2 compatibility: Don't reset portamento target with new instrument numbers. @@ -1694,6 +1711,10 @@ if(note == NOTE_KEYOFF || !(GetType() & (MOD_TYPE_IT|MOD_TYPE_MPT))) { KeyOff(chn); + // IT compatibility: Note-off + instrument releases sample sustain but does not release envelopes or fade the instrument + // Test case: noteoff3.it, ResetEnvNoteOffOldFx2.it + if(!bPorta && m_playBehaviour[kITInstrWithNoteOffOldEffects] && m_SongFlags[SONG_ITOLDEFFECTS] && chn.rowCommand.instr) + chn.dwFlags.reset(CHN_NOTEFADE | CHN_KEYOFF); } else // Invalid Note -> Note Fade { if(/*note == NOTE_FADE && */ GetNumInstruments()) @@ -2783,7 +2804,10 @@ if(smp > 0 && smp <= GetNumSamples() && !Samples[smp].uFlags[SMP_NODEFAULTVOLUME]) chn.nVolume = Samples[smp].nVolume; } - instr = 0; + // IT compatibility: Note-off with instrument number + Old Effects retriggers envelopes. + // Test case: ResetEnvNoteOffOldFx.it + if(!m_playBehaviour[kITInstrWithNoteOffOldEffects] || !m_SongFlags[SONG_ITOLDEFFECTS]) + instr = 0; } if(ModCommand::IsNote(note)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/soundlib/Sndfile.cpp new/libopenmpt-0.4.3+release.autotools/soundlib/Sndfile.cpp --- old/libopenmpt-0.4.2+release.autotools/soundlib/Sndfile.cpp 2019-01-20 20:23:09.000000000 +0100 +++ new/libopenmpt-0.4.3+release.autotools/soundlib/Sndfile.cpp 2019-01-28 23:02:51.000000000 +0100 @@ -1038,6 +1038,7 @@ playBehaviour.set(kITInstrWithNoteOff); playBehaviour.set(kITMultiSampleInstrumentNumber); playBehaviour.set(kRowDelayWithNoteDelay); + playBehaviour.set(kITInstrWithNoteOffOldEffects); if(type == MOD_TYPE_MPT) { playBehaviour.set(kOPLFlexibleNoteOff); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/soundlib/Sndmix.cpp new/libopenmpt-0.4.3+release.autotools/soundlib/Sndmix.cpp --- old/libopenmpt-0.4.2+release.autotools/soundlib/Sndmix.cpp 2019-01-20 20:23:09.000000000 +0100 +++ new/libopenmpt-0.4.3+release.autotools/soundlib/Sndmix.cpp 2019-02-09 23:38:18.000000000 +0100 @@ -2235,7 +2235,7 @@ period = m_nMinPeriod; } - if((chn.dwFlags & (CHN_ADLIB | CHN_MUTE | CHN_SYNCMUTE)) == CHN_ADLIB && !chn.pModSample->uFlags[CHN_MUTE] && m_opl) + if((chn.dwFlags & (CHN_ADLIB | CHN_MUTE | CHN_SYNCMUTE)) == CHN_ADLIB && m_opl) { const bool doProcess = m_playBehaviour[kOPLFlexibleNoteOff] || !chn.dwFlags[CHN_NOTEFADE] || GetType() == MOD_TYPE_S3M; if(doProcess && !(GetType() == MOD_TYPE_S3M && chn.dwFlags[CHN_KEYOFF])) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libopenmpt-0.4.2+release.autotools/soundlib/UpgradeModule.cpp new/libopenmpt-0.4.3+release.autotools/soundlib/UpgradeModule.cpp --- old/libopenmpt-0.4.2+release.autotools/soundlib/UpgradeModule.cpp 2019-01-20 20:23:09.000000000 +0100 +++ new/libopenmpt-0.4.3+release.autotools/soundlib/UpgradeModule.cpp 2019-01-28 23:02:51.000000000 +0100 @@ -430,49 +430,49 @@ // Pre-1.26: Detailed compatibility flags did not exist. static constexpr PlayBehaviourVersion behaviours[] = { - { kTempoClamp, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kPerChannelGlobalVolSlide, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kPanOverride, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kITInstrWithoutNote, MAKE_VERSION_NUMERIC(1, 17, 02, 46) }, - { kITVolColFinePortamento, MAKE_VERSION_NUMERIC(1, 17, 02, 49) }, - { kITArpeggio, MAKE_VERSION_NUMERIC(1, 17, 02, 49) }, - { kITOutOfRangeDelay, MAKE_VERSION_NUMERIC(1, 17, 02, 49) }, - { kITPortaMemoryShare, MAKE_VERSION_NUMERIC(1, 17, 02, 49) }, - { kITPatternLoopTargetReset, MAKE_VERSION_NUMERIC(1, 17, 02, 49) }, - { kITFT2PatternLoop, MAKE_VERSION_NUMERIC(1, 17, 02, 49) }, - { kITPingPongNoReset, MAKE_VERSION_NUMERIC(1, 17, 02, 51) }, - { kITEnvelopeReset, MAKE_VERSION_NUMERIC(1, 17, 02, 51) }, - { kITClearOldNoteAfterCut, MAKE_VERSION_NUMERIC(1, 17, 02, 52) }, - { kITVibratoTremoloPanbrello, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kITTremor, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kITRetrigger, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kITMultiSampleBehaviour, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kITPortaTargetReached, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kITPatternLoopBreak, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kITOffset, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kITSwingBehaviour, MAKE_VERSION_NUMERIC(1, 18, 00, 00) }, - { kITNNAReset, MAKE_VERSION_NUMERIC(1, 18, 00, 00) }, - { kITSCxStopsSample, MAKE_VERSION_NUMERIC(1, 18, 00, 01) }, - { kITEnvelopePositionHandling, MAKE_VERSION_NUMERIC(1, 18, 01, 00) }, - { kITPortamentoInstrument, MAKE_VERSION_NUMERIC(1, 19, 00, 01) }, - { kITPingPongMode, MAKE_VERSION_NUMERIC(1, 19, 00, 21) }, - { kITRealNoteMapping, MAKE_VERSION_NUMERIC(1, 19, 00, 30) }, - { kITHighOffsetNoRetrig, MAKE_VERSION_NUMERIC(1, 20, 00, 14) }, - { kITFilterBehaviour, MAKE_VERSION_NUMERIC(1, 20, 00, 35) }, - { kITNoSurroundPan, MAKE_VERSION_NUMERIC(1, 20, 00, 53) }, - { kITShortSampleRetrig, MAKE_VERSION_NUMERIC(1, 20, 00, 54) }, - { kITPortaNoNote, MAKE_VERSION_NUMERIC(1, 20, 00, 56) }, - { kRowDelayWithNoteDelay, MAKE_VERSION_NUMERIC(1, 20, 00, 76) }, - { kITDontResetNoteOffOnPorta, MAKE_VERSION_NUMERIC(1, 20, 02, 06) }, - { kITVolColMemory, MAKE_VERSION_NUMERIC(1, 21, 01, 16) }, - { kITPortamentoSwapResetsPos, MAKE_VERSION_NUMERIC(1, 21, 01, 25) }, - { kITEmptyNoteMapSlot, MAKE_VERSION_NUMERIC(1, 21, 01, 25) }, - { kITFirstTickHandling, MAKE_VERSION_NUMERIC(1, 22, 07, 09) }, - { kITSampleAndHoldPanbrello, MAKE_VERSION_NUMERIC(1, 22, 07, 19) }, - { kITClearPortaTarget, MAKE_VERSION_NUMERIC(1, 23, 04, 03) }, - { kITPanbrelloHold, MAKE_VERSION_NUMERIC(1, 24, 01, 06) }, - { kITPanningReset, MAKE_VERSION_NUMERIC(1, 24, 01, 06) }, - { kITPatternLoopWithJumps, MAKE_VERSION_NUMERIC(1, 25, 00, 19) }, + { kTempoClamp, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kPerChannelGlobalVolSlide, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kPanOverride, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kITInstrWithoutNote, MAKE_VERSION_NUMERIC(1, 17, 02, 46) }, + { kITVolColFinePortamento, MAKE_VERSION_NUMERIC(1, 17, 02, 49) }, + { kITArpeggio, MAKE_VERSION_NUMERIC(1, 17, 02, 49) }, + { kITOutOfRangeDelay, MAKE_VERSION_NUMERIC(1, 17, 02, 49) }, + { kITPortaMemoryShare, MAKE_VERSION_NUMERIC(1, 17, 02, 49) }, + { kITPatternLoopTargetReset, MAKE_VERSION_NUMERIC(1, 17, 02, 49) }, + { kITFT2PatternLoop, MAKE_VERSION_NUMERIC(1, 17, 02, 49) }, + { kITPingPongNoReset, MAKE_VERSION_NUMERIC(1, 17, 02, 51) }, + { kITEnvelopeReset, MAKE_VERSION_NUMERIC(1, 17, 02, 51) }, + { kITClearOldNoteAfterCut, MAKE_VERSION_NUMERIC(1, 17, 02, 52) }, + { kITVibratoTremoloPanbrello, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kITTremor, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kITRetrigger, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kITMultiSampleBehaviour, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kITPortaTargetReached, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kITPatternLoopBreak, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kITOffset, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kITSwingBehaviour, MAKE_VERSION_NUMERIC(1, 18, 00, 00) }, + { kITNNAReset, MAKE_VERSION_NUMERIC(1, 18, 00, 00) }, + { kITSCxStopsSample, MAKE_VERSION_NUMERIC(1, 18, 00, 01) }, + { kITEnvelopePositionHandling, MAKE_VERSION_NUMERIC(1, 18, 01, 00) }, + { kITPortamentoInstrument, MAKE_VERSION_NUMERIC(1, 19, 00, 01) }, + { kITPingPongMode, MAKE_VERSION_NUMERIC(1, 19, 00, 21) }, + { kITRealNoteMapping, MAKE_VERSION_NUMERIC(1, 19, 00, 30) }, + { kITHighOffsetNoRetrig, MAKE_VERSION_NUMERIC(1, 20, 00, 14) }, + { kITFilterBehaviour, MAKE_VERSION_NUMERIC(1, 20, 00, 35) }, + { kITNoSurroundPan, MAKE_VERSION_NUMERIC(1, 20, 00, 53) }, + { kITShortSampleRetrig, MAKE_VERSION_NUMERIC(1, 20, 00, 54) }, + { kITPortaNoNote, MAKE_VERSION_NUMERIC(1, 20, 00, 56) }, + { kRowDelayWithNoteDelay, MAKE_VERSION_NUMERIC(1, 20, 00, 76) }, + { kITDontResetNoteOffOnPorta, MAKE_VERSION_NUMERIC(1, 20, 02, 06) }, + { kITVolColMemory, MAKE_VERSION_NUMERIC(1, 21, 01, 16) }, + { kITPortamentoSwapResetsPos, MAKE_VERSION_NUMERIC(1, 21, 01, 25) }, + { kITEmptyNoteMapSlot, MAKE_VERSION_NUMERIC(1, 21, 01, 25) }, + { kITFirstTickHandling, MAKE_VERSION_NUMERIC(1, 22, 07, 09) }, + { kITSampleAndHoldPanbrello, MAKE_VERSION_NUMERIC(1, 22, 07, 19) }, + { kITClearPortaTarget, MAKE_VERSION_NUMERIC(1, 23, 04, 03) }, + { kITPanbrelloHold, MAKE_VERSION_NUMERIC(1, 24, 01, 06) }, + { kITPanningReset, MAKE_VERSION_NUMERIC(1, 24, 01, 06) }, + { kITPatternLoopWithJumps, MAKE_VERSION_NUMERIC(1, 25, 00, 19) }, }; for(const auto &b : behaviours) @@ -484,36 +484,36 @@ // Pre-1.26: Detailed compatibility flags did not exist. static constexpr PlayBehaviourVersion behaviours[] = { - { kTempoClamp, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kPerChannelGlobalVolSlide, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kPanOverride, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kITFT2PatternLoop, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kFT2Arpeggio, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kFT2Retrigger, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kFT2VolColVibrato, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kFT2PortaNoNote, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kFT2KeyOff, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kFT2PanSlide, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kFT2OffsetOutOfRange, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, - { kFT2RestrictXCommand, MAKE_VERSION_NUMERIC(1, 18, 00, 00) }, - { kFT2RetrigWithNoteDelay, MAKE_VERSION_NUMERIC(1, 18, 00, 00) }, - { kFT2SetPanEnvPos, MAKE_VERSION_NUMERIC(1, 18, 00, 00) }, - { kFT2PortaIgnoreInstr, MAKE_VERSION_NUMERIC(1, 18, 00, 01) }, - { kFT2VolColMemory, MAKE_VERSION_NUMERIC(1, 18, 01, 00) }, - { kFT2LoopE60Restart, MAKE_VERSION_NUMERIC(1, 18, 02, 01) }, - { kFT2ProcessSilentChannels, MAKE_VERSION_NUMERIC(1, 18, 02, 01) }, - { kFT2ReloadSampleSettings, MAKE_VERSION_NUMERIC(1, 20, 00, 36) }, - { kFT2PortaDelay, MAKE_VERSION_NUMERIC(1, 20, 00, 40) }, - { kFT2Transpose, MAKE_VERSION_NUMERIC(1, 20, 00, 62) }, - { kFT2PatternLoopWithJumps, MAKE_VERSION_NUMERIC(1, 20, 00, 69) }, - { kFT2PortaTargetNoReset, MAKE_VERSION_NUMERIC(1, 20, 00, 69) }, - { kFT2EnvelopeEscape, MAKE_VERSION_NUMERIC(1, 20, 00, 77) }, - { kFT2Tremor, MAKE_VERSION_NUMERIC(1, 20, 01, 11) }, - { kFT2OutOfRangeDelay, MAKE_VERSION_NUMERIC(1, 20, 02, 02) }, - { kFT2Periods, MAKE_VERSION_NUMERIC(1, 22, 03, 01) }, - { kFT2PanWithDelayedNoteOff, MAKE_VERSION_NUMERIC(1, 22, 03, 02) }, - { kFT2VolColDelay, MAKE_VERSION_NUMERIC(1, 22, 07, 19) }, - { kFT2FinetunePrecision, MAKE_VERSION_NUMERIC(1, 22, 07, 19) }, + { kTempoClamp, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kPerChannelGlobalVolSlide, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kPanOverride, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kITFT2PatternLoop, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kFT2Arpeggio, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kFT2Retrigger, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kFT2VolColVibrato, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kFT2PortaNoNote, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kFT2KeyOff, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kFT2PanSlide, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kFT2OffsetOutOfRange, MAKE_VERSION_NUMERIC(1, 17, 03, 02) }, + { kFT2RestrictXCommand, MAKE_VERSION_NUMERIC(1, 18, 00, 00) }, + { kFT2RetrigWithNoteDelay, MAKE_VERSION_NUMERIC(1, 18, 00, 00) }, + { kFT2SetPanEnvPos, MAKE_VERSION_NUMERIC(1, 18, 00, 00) }, + { kFT2PortaIgnoreInstr, MAKE_VERSION_NUMERIC(1, 18, 00, 01) }, + { kFT2VolColMemory, MAKE_VERSION_NUMERIC(1, 18, 01, 00) }, + { kFT2LoopE60Restart, MAKE_VERSION_NUMERIC(1, 18, 02, 01) }, + { kFT2ProcessSilentChannels, MAKE_VERSION_NUMERIC(1, 18, 02, 01) }, + { kFT2ReloadSampleSettings, MAKE_VERSION_NUMERIC(1, 20, 00, 36) }, + { kFT2PortaDelay, MAKE_VERSION_NUMERIC(1, 20, 00, 40) }, + { kFT2Transpose, MAKE_VERSION_NUMERIC(1, 20, 00, 62) }, + { kFT2PatternLoopWithJumps, MAKE_VERSION_NUMERIC(1, 20, 00, 69) }, + { kFT2PortaTargetNoReset, MAKE_VERSION_NUMERIC(1, 20, 00, 69) }, + { kFT2EnvelopeEscape, MAKE_VERSION_NUMERIC(1, 20, 00, 77) }, + { kFT2Tremor, MAKE_VERSION_NUMERIC(1, 20, 01, 11) }, + { kFT2OutOfRangeDelay, MAKE_VERSION_NUMERIC(1, 20, 02, 02) }, + { kFT2Periods, MAKE_VERSION_NUMERIC(1, 22, 03, 01) }, + { kFT2PanWithDelayedNoteOff, MAKE_VERSION_NUMERIC(1, 22, 03, 02) }, + { kFT2VolColDelay, MAKE_VERSION_NUMERIC(1, 22, 07, 19) }, + { kFT2FinetunePrecision, MAKE_VERSION_NUMERIC(1, 22, 07, 19) }, }; for(const auto &b : behaviours) @@ -527,8 +527,9 @@ // The following behaviours were added in/after OpenMPT 1.26, so are not affected by the upgrade mechanism above. static constexpr PlayBehaviourVersion behaviours[] = { - { kITInstrWithNoteOff, MAKE_VERSION_NUMERIC(1, 26, 00, 01) }, - { kITMultiSampleInstrumentNumber, MAKE_VERSION_NUMERIC(1, 27, 00, 27) }, + { kITInstrWithNoteOff, MAKE_VERSION_NUMERIC(1, 26, 00, 01) }, + { kITMultiSampleInstrumentNumber, MAKE_VERSION_NUMERIC(1, 27, 00, 27) }, + { kITInstrWithNoteOffOldEffects, MAKE_VERSION_NUMERIC(1, 28, 02, 06) }, }; for(const auto &b : behaviours) @@ -544,12 +545,12 @@ // The following behaviours were added after OpenMPT 1.26, so are not affected by the upgrade mechanism above. static constexpr PlayBehaviourVersion behaviours[] = { - { kFT2NoteOffFlags, MAKE_VERSION_NUMERIC(1, 27, 00, 27) }, - { kRowDelayWithNoteDelay, MAKE_VERSION_NUMERIC(1, 27, 00, 37) }, - { kFT2TremoloRampWaveform, MAKE_VERSION_NUMERIC(1, 27, 00, 37) }, - { kFT2PortaUpDownMemory, MAKE_VERSION_NUMERIC(1, 27, 00, 37) }, - { kFT2PanSustainRelease, MAKE_VERSION_NUMERIC(1, 28, 00, 09) }, - { kFT2NoteDelayWithoutInstr, MAKE_VERSION_NUMERIC(1, 28, 00, 44) }, + { kFT2NoteOffFlags, MAKE_VERSION_NUMERIC(1, 27, 00, 27) }, + { kRowDelayWithNoteDelay, MAKE_VERSION_NUMERIC(1, 27, 00, 37) }, + { kFT2TremoloRampWaveform, MAKE_VERSION_NUMERIC(1, 27, 00, 37) }, + { kFT2PortaUpDownMemory, MAKE_VERSION_NUMERIC(1, 27, 00, 37) }, + { kFT2PanSustainRelease, MAKE_VERSION_NUMERIC(1, 28, 00, 09) }, + { kFT2NoteDelayWithoutInstr, MAKE_VERSION_NUMERIC(1, 28, 00, 44) }, }; for(const auto &b : behaviours)
