Fixed a bug introduced in r245 that caused small constant time offset in the output vs. input stream

This commit is contained in:
oparviai 2017-04-07 19:01:22 +00:00
parent c31fca9c9f
commit 92bfdd1e8d
2 changed files with 6 additions and 6 deletions

View File

@ -855,6 +855,7 @@ submitted bugfixes:</p>
<li> Mathias Möhl</li>
<li> Yuval Naveh</li>
<li> Mats Palmgren </li>
<li> Chandni Patel</li>
<li> Paulo Pizarro</li>
<li> Andrey Ponomarenko</li>
<li> Blaise Potard</li>

View File

@ -675,11 +675,10 @@ void TDStretch::processSamples()
}
else
{
// Adjust processing offset at beginning of track:
// - do not perform initial overlapping
// - compensate expected value of 'seekBestOverlapPosition' offset landing to middle of seekLength
// Adjust processing offset at beginning of track by not perform initial overlapping
// and compensating that in the 'input buffer skip' calculation
isBeginning = false;
int skip = overlapLength + seekLength / 2;
int skip = (int)(tempo * overlapLength + 0.5);
#ifdef SOUNDTOUCH_ALLOW_NONEXACT_SIMD_OPTIMIZATION
#ifdef SOUNDTOUCH_ALLOW_SSE