Non-blocking MIDI player #1520

This commit is contained in:
ema
2025-01-01 03:42:18 +08:00
parent e4e0fe3fa6
commit e70c23ad75
2 changed files with 7 additions and 11 deletions

View File

@@ -397,8 +397,8 @@ public partial class ViewerPanel : UserControl, IDisposable, INotifyPropertyChan
if (audioCodec?.Equals("MIDI", StringComparison.OrdinalIgnoreCase) ?? false)
{
_midiPlayer = new MidiPlayer(this, _context);
_midiPlayer.LoadAndPlay(path, info);
return; // MIDI player will handle the playback at all
_midiPlayer.LoadAndPlay(path);
return; // Midi player will handle the playback at all
}
}