From: <sag...@us...> - 2013-07-01 21:56:34
|
Revision: 2475 http://sourceforge.net/p/modplug/code/2475 Author: saga-games Date: 2013-07-01 21:56:27 +0000 (Mon, 01 Jul 2013) Log Message: ----------- [Fix] PTM Nxx wasn't working quite correctly with looped samples. Modified Paths: -------------- trunk/OpenMPT/soundlib/Snd_fx.cpp Modified: trunk/OpenMPT/soundlib/Snd_fx.cpp =================================================================== --- trunk/OpenMPT/soundlib/Snd_fx.cpp 2013-07-01 21:49:02 UTC (rev 2474) +++ trunk/OpenMPT/soundlib/Snd_fx.cpp 2013-07-01 21:56:27 UTC (rev 2475) @@ -2630,7 +2630,8 @@ { pChn->dwFlags.set(CHN_PINGPONGFLAG); pChn->dwFlags.reset(CHN_LOOP); - pChn->nPos = (pChn->pModSample->nLength - 1) - std::min<SmpLength>(SmpLength(pChn->rowCommand.param) << 8, pChn->pModSample->nLength); + pChn->nLength = pChn->pModSample->nLength; // If there was a loop, extend sample to whole length. + pChn->nPos = (pChn->nLength - 1) - std::min<SmpLength>(SmpLength(pChn->rowCommand.param) << 8, pChn->nLength - 1); pChn->nPosLo = 0; } break; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |