Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: MIDIout.Finalize() MIDIin.Finalize() problem

$
0
0

AS simple workaround can be this:


 

try

{
Gmidi.midiOut = new MidiOut(Gmidi.VMidiDevice);
this.Closed += (o, s) => Gmidi.midiOut.Dispose();
Gmidi.midiIn = new MidiIn(Gmidi.IMidiDevice);
this.Closed += (o, s) => Gmidi.midiIn.Dispose();
Gmidi.midiIn.Start();

} 

 

catch

{

MessageBox.Show("MIDI IN & MIDI out cant use the same port, please reconfigure!"
}

 

The problem is after the exeption I have assertion, some times can ignore all times freeze all.


Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>