Skip to content

Commit

Permalink
Fixed srt export not work properly when lines are more then 3
Browse files Browse the repository at this point in the history
  • Loading branch information
EX3exp committed Dec 16, 2024
1 parent fbd99ff commit 56504d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mirivoice/Mirivoice.Core/Managers/AudioManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ public async void PlayAllCacheFiles(int startIndex, bool exportOnlyAndDoNotPlay
{
sb1.AppendLine((i + 1).ToString());
sb2.AppendLine((i + 1).ToString());
TimeSpan currTs = GetAudioDuration(caches[i]);

TimeSpan currTs = GetAudioDuration(caches[i]) + lastTs;

string lastTime = lastTs.ToString(@"hh\:mm\:ss\,fff");
string currTime = currTs.ToString(@"hh\:mm\:ss\,fff");
Expand Down

0 comments on commit 56504d9

Please sign in to comment.