Update gap between sentences in KaraokeEffect

Changed the constant value for the gap between sentences in the KaraokeEffect to 0. This adjustment aims to eliminate any flickering previously caused by a non-zero gap.
This commit is contained in:
Ivandro Jao 2024-03-31 10:46:52 +01:00
parent c17b0c1c31
commit a103ec717e

View File

@ -20,7 +20,9 @@ namespace Nikse.SubtitleEdit.Core.Common.TextEffect
var duration = paragraph.DurationTotalMilliseconds - delay;
var durationPerSentence = duration / result.Length;
var baseStartTime = paragraph.StartTime.TotalMilliseconds;
const double gapBetweenSentences = 1;
// the gaps must be 0 to avoid flickering
const double gapBetweenSentences = 0;
var animations = new List<Paragraph>();
for (var i = 0; i < result.Length; i++)