From: <sag...@us...> - 2014-02-01 16:04:19
|
Revision: 3614 http://sourceforge.net/p/modplug/code/3614 Author: saga-games Date: 2014-02-01 16:04:11 +0000 (Sat, 01 Feb 2014) Log Message: ----------- [Fix] Generated loop lookahead data was wrong for stereo samples. [Mod] OpenMPT: Version is now 1.22.07.17 Modified Paths: -------------- trunk/OpenMPT/common/versionNumber.h trunk/OpenMPT/soundlib/modsmp_ctrl.cpp Modified: trunk/OpenMPT/common/versionNumber.h =================================================================== --- trunk/OpenMPT/common/versionNumber.h 2014-02-01 15:44:02 UTC (rev 3613) +++ trunk/OpenMPT/common/versionNumber.h 2014-02-01 16:04:11 UTC (rev 3614) @@ -17,7 +17,7 @@ #define VER_MAJORMAJOR 1 #define VER_MAJOR 22 #define VER_MINOR 07 -#define VER_MINORMINOR 16 +#define VER_MINORMINOR 17 //Version string. For example "1.17.02.28" #define MPT_VERSION_STR VER_STRINGIZE(VER_MAJORMAJOR) "." VER_STRINGIZE(VER_MAJOR) "." VER_STRINGIZE(VER_MINOR) "." VER_STRINGIZE(VER_MINORMINOR) Modified: trunk/OpenMPT/soundlib/modsmp_ctrl.cpp =================================================================== --- trunk/OpenMPT/soundlib/modsmp_ctrl.cpp 2014-02-01 15:44:02 UTC (rev 3613) +++ trunk/OpenMPT/soundlib/modsmp_ctrl.cpp 2014-02-01 16:04:11 UTC (rev 3614) @@ -177,9 +177,9 @@ // Copy sample over to lookahead buffer for(int c = 0; c < numChannels; c++) { - *dest = sampleData[readPosition * numChannels + c]; - dest += writeIncrement; + dest[c] = sampleData[readPosition * numChannels + c]; } + dest += writeIncrement * numChannels; if(readPosition == loopEnd - 1 && readIncrement > 0) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |