public static midiOutOpen ( HMIDIOUT &lphmo, |
||
lphmo | HMIDIOUT | |
uDeviceID | ||
dwCallback | MidiOutProc | |
dwCallbackInstance | ||
리턴 | MMRESULT |
/// <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; } }