CallbackMidiDevicesOpenRemoved delegate |
|
Remarks
Callback delegate invoked from a secondary thread when a MIDI device, previously opened through the MidiDevices.Open method, is disconnected from the system after a manual removal.
In order to allow the component invoking this delegate at runtime, the container application must invoke the CallbackMidiDevicesOpenRemovedSet method passing the address of the callback function.
For further details about callback delegates see the How to synchronize the container application with the API tutorial.
For further details about the use of MIDI devices see the ClassMidiDevices class section and the How to manage MIDI devices tutorial.
Syntax
[Visual Basic] Public Delegate Sub CallbackMidiDevicesOpenRemoved ( nDisconnectedInputDevice as Int16, nDisconnectedOutputDevice as Int16, nUserData as Int32 ) |
[C#] public delegate void CallbackMidiDevicesOpenRemoved ( Int16 nDisconnectedInputDevice, Int16 nDisconnectedOutputDevice, Int32 nUserData ) |
[C++] public delegate void CallbackMidiDevicesOpenRemoved ( Int16 nDisconnectedInputDevice, Int16 nDisconnectedOutputDevice, Int32 nUserData ) |
Parameter |
Description |
|
|
nDisconnectedInputDevice |
The unique identifier of the disconnected MIDI input device returned by a previous call to the MidiDevices.Open method. |
nDisconnectedOutputDevice |
The unique identifier of the disconnected MIDI output device returned by a previous call to the MidiDevices.Open method. |
nUserData |
User instance data |