forked from mia/Aegisub
Round syllable durations to centiseconds when splitting syllables
This commit is contained in:
parent
af35e50810
commit
ffef9a1485
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ void AssKaraoke::AddSplit(size_t syl_idx, size_t pos) {
|
|||
syl.duration = 0;
|
||||
}
|
||||
else {
|
||||
new_syl.duration = syl.duration * new_syl.text.size() / (syl.text.size() + new_syl.text.size());
|
||||
new_syl.duration = (syl.duration * new_syl.text.size() / (syl.text.size() + new_syl.text.size()) + 5) / 10 * 10;
|
||||
syl.duration -= new_syl.duration;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue