MidiDevices.Close method |
|
Remarks
Closes a specific MIDI device installed inside the system which was previously opened through the MidiDevices.Open method.
When a MIDI device has been closed through this method, eventual connections with the specific MIDI input or output device, previously established through calls to MidiDevices.InputOutputConnect, MidiVirtualKeyboard.MidiInputConnect, MidiVirtualKeyboard.MidiOutputConnect or MidiDjConsole.Connect methods, will be automatically disconnected.
For further details about the use of MIDI devices see the MidiDevices object section and the How to manage MIDI devices tutorial.
Syntax
[Visual Basic] control.MidiDevices.Close ( nDeviceUniqueId as Integer ) as enumDjcErrorCodes |
[C++] short control.MidiDevices.Close ( short nDeviceUniqueId ); |
Parameter |
Description |
|
|
nDeviceUniqueId |
The unique identifier of the MIDI device returned by a previous call to the MidiDevices.Open method |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to get the error code |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful |