Skip to content

Commit

Permalink
Don't skip updating audio time for undefined events
Browse files Browse the repository at this point in the history
  • Loading branch information
khang06 committed Feb 26, 2025
1 parent 6172556 commit d28d12e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions OmniConverter/Extensions/MIDI/MIDIConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -938,11 +938,12 @@ public void Process(ISampleWriter output, WaveFormat waveFormat, CancellationTok
while (pauseConversion)
Thread.Sleep(500);

deltaTime += e.DeltaTime;
_converted = deltaTime;

if (e is UndefinedEvent)
continue;

deltaTime += e.DeltaTime;
_converted = deltaTime;
var eb = e.GetData(scratch);

if (rtsMode)
Expand Down

0 comments on commit d28d12e

Please sign in to comment.