Author: sagamusix
Date: Thu May 30 23:32:20 2024
New Revision: 20872
URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20872
Log:
[Fix] Also disable loop wrap-around buffer logic if the sample loop start doesn't match.
Modified:
trunk/OpenMPT/soundlib/Fastmix.cpp
Modified: trunk/OpenMPT/soundlib/Fastmix.cpp
==============================================================================
--- trunk/OpenMPT/soundlib/Fastmix.cpp Thu May 30 23:30:33 2024 (r20871)
+++ trunk/OpenMPT/soundlib/Fastmix.cpp Thu May 30 23:32:20 2024 (r20872)
@@ -76,7 +76,7 @@
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)
+ if(inSustainLoop || (chn.nLoopStart == chn.pModSample->nLoopStart && chn.nLoopEnd == chn.pModSample->nLoopEnd))
{
SmpLength lookaheadOffset = 3 * InterpolationLookaheadBufferSize + chn.pModSample->nLength - chn.nLoopEnd;
if(inSustainLoop)
|