midiOutOpen() public static method

Opens a MIDI output device.
public static midiOutOpen ( HMIDIOUT &lphmo, UIntPtr uDeviceID, MidiOutProc dwCallback, UIntPtr dwCallbackInstance ) : MMRESULT
lphmo HMIDIOUT
uDeviceID System.UIntPtr
dwCallback MidiOutProc
dwCallbackInstance System.UIntPtr
return MMRESULT
Beispiel #1
0
 /// <summary>
 /// Opens this output device.
 /// </summary>
 /// <exception cref="InvalidOperationException">The device is already open.</exception>
 /// <exception cref="DeviceException">The device cannot be opened.</exception>
 public void Open()
 {
     lock (this)
     {
         CheckNotOpen();
         CheckReturnCode(Win32API.midiOutOpen(out handle, deviceId, null, (UIntPtr)0));
         isOpen = true;
     }
 }