Пример #1
0
 /// <summary>
 /// Opens a specified MIDI out device
 /// </summary>
 /// <param name="deviceNo">The device number</param>
 public MidiOut(int deviceNo)
 {
     callback = Callback;
     MmException.Try(
         MidiInterop.midiOutOpen(out hMidiOut, (IntPtr)deviceNo, callback, IntPtr.Zero, MidiInterop.CALLBACK_FUNCTION),
         "midiOutOpen");
 }
Пример #2
0
 /// <summary>
 /// Opens a specified MIDI out device
 /// </summary>
 /// <param name="deviceNo">The device number</param>
 public MidiOut(int deviceNo)
 {
     this.callback = new MidiInterop.MidiOutCallback(Callback);
     MmException.Try(MidiInterop.midiOutOpen(out hMidiOut, deviceNo, callback, 0, MidiInterop.CALLBACK_FUNCTION), "midiOutOpen");
 }
Пример #3
0
 public MidiOut(int deviceNo)
 {
     this.callback = new MidiInterop.MidiOutCallback(this.Callback);
     MmException.Try(MidiInterop.midiOutOpen(out this.hMidiOut, (IntPtr)deviceNo, this.callback, IntPtr.Zero, 196608), "midiOutOpen");
 }