From: <sag...@us...> - 2013-03-01 16:47:41
|
Revision: 1547 http://sourceforge.net/p/modplug/code/1547 Author: saga-games Date: 2013-03-01 16:47:30 +0000 (Fri, 01 Mar 2013) Log Message: ----------- [Mod] IT compression can now be configured per export format (normal IT, compat IT, MPTM) [Mod] OpenMPT: Version is now 1.21.01.17 Modified Paths: -------------- trunk/OpenMPT/common/version.h trunk/OpenMPT/soundlib/Load_it.cpp Modified: trunk/OpenMPT/common/version.h =================================================================== --- trunk/OpenMPT/common/version.h 2013-03-01 16:45:36 UTC (rev 1546) +++ trunk/OpenMPT/common/version.h 2013-03-01 16:47:30 UTC (rev 1547) @@ -19,7 +19,7 @@ #define VER_MAJORMAJOR 1 #define VER_MAJOR 21 #define VER_MINOR 01 -#define VER_MINORMINOR 16 +#define VER_MINORMINOR 17 //Creates version number from version parts that appears in version string. //For example MAKE_VERSION_NUMERIC(1,17,02,28) gives version number of Modified: trunk/OpenMPT/soundlib/Load_it.cpp =================================================================== --- trunk/OpenMPT/soundlib/Load_it.cpp 2013-03-01 16:45:36 UTC (rev 1546) +++ trunk/OpenMPT/soundlib/Load_it.cpp 2013-03-01 16:47:30 UTC (rev 1547) @@ -1482,7 +1482,9 @@ for (UINT nsmp=1; nsmp<=itHeader.smpnum; nsmp++) { #ifdef MODPLUG_TRACKER - bool compress = ::GetPrivateProfileInt("Misc", Samples[nsmp].GetNumChannels() > 1 ? "ITCompressionStereo" : "ITCompressionMono", 0, theApp.GetConfigFileName()) != 0; + int type = GetType() == MOD_TYPE_IT ? 1 : 4; + if(compatibilityExport) type = 2; + bool compress = (::GetPrivateProfileInt("Misc", Samples[nsmp].GetNumChannels() > 1 ? "ITCompressionStereo" : "ITCompressionMono", 0, theApp.GetConfigFileName()) & type) != 0; #else bool compress = false; #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |