Copyright © 2013-2015 MultiMedia Soft

MidiDevicesOpenRemoved event

Previous pageReturn to chapter overviewNext page

Remarks

 

Occurs when a MIDI device, previously opened through the MidiDevices.Open method, is disconnected from the system after a manual removal.

 

For further details about input events management see the How to synchronize the container application with the control tutorial.

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]

MidiDevicesOpenRemoved (

bInput as enumBoolean,

nDeviceUniqueId as Integer,

strFriendlyName as String

)


 

[C++]

void MidiDevicesOpenRemoved (

short bInput,

short nDeviceUniqueId,

BSTR strFriendlyName

);


 

 

Parameter

Description

 

 

bInput

Boolean value that specifies if the event is related to an input or an output device.

Supported values are the following:

Mnemonic constant

Value

Meaning

BOOL_FALSE

0

The disconnection occurred on an output device

BOOL_TRUE

1

The disconnection occurred on an input device

nDeviceUniqueId

The unique identifier of the MIDI device returned by a previous call to the MidiDevices.Open method.

strFriendlyName

The friendly name of the disconnected device.