melanchall / drywetmidi

.NET library to read, write, process MIDI files and to work with MIDI devices
https://melanchall.github.io/drywetmidi
MIT License
523 stars 73 forks source link

Crash on Unity when editor stop #227

Closed tramper2 closed 1 year ago

tramper2 commented 1 year ago

i want to use touch piano so i made a VitualTouchPianoDevice : IInputDevice Class to get piano input and i send Note on /off event to OutputDevice _outputDevice; private void OnEventReceived(object sender, MidiEventReceivedEventArgs e) { _outputDevice.SendEvent(e.Event); }

everthing is working what i expecting but when i click stop button in Unity Editor. it.s meet crash and unity exit

Do happen to know what is wrong? Thanks Danny

tramper2 commented 1 year ago

oh i didn,t dispose device...