mirror of
https://github.com/azahar-emu/soundtouch
synced 2025-11-06 23:20:03 +01:00
Fix bug with too small initial skipFract value
Fix bug with too small initial skipFract value with certain processing parameter set: replaces assert with assignment that corrects the situation.
This commit is contained in:
parent
6533514372
commit
17a63e99d5
@ -687,7 +687,10 @@ void TDStretch::processSamples()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
skipFract -= skip;
|
skipFract -= skip;
|
||||||
assert(nominalSkip >= -skipFract);
|
if (skipFract <= -nominalSkip)
|
||||||
|
{
|
||||||
|
skipFract = -nominalSkip;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ... then copy sequence samples from 'inputBuffer' to output:
|
// ... then copy sequence samples from 'inputBuffer' to output:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user