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

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

$
0
0

How can disable assertion?



 

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("here message about midi error."
);

 

this.Closed += (o, s) => Gmidi.midiOut.Dispose(); th
is
.Closed += (o, s) => Gmidi .midiIn.Dispose();

);

Application.Current.Shutdown();

 

}


Viewing all articles
Browse latest Browse all 5831

Trending Articles



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