Copyright © 2001-2018 MultiMedia Soft

MIDI.InputDevicesEnum method

Previous pageReturn to chapter overviewNext page

Remarks

 

Enumerates MIDI input devices installed inside the system.

Information about each detected MIDI input device can be obtained through the MIDI.InputDevicesInfoGet method.

 

Before being used for detecting incoming MIDI events, each MIDI input device must be started through the MIDI.InputDevicesStart method or through the MIDI.InputDevicesStartOnPlayer method.

 

For further details about the use of MIDI protocol see the MIDI object section and the How to deal with MIDI protocol tutorial.

 

 

Syntax

 

[Visual Basic]

control.MIDI.InputDevicesEnum (

nCount as Integer

) as enumErrorCodes


 

[C++]

short control.MIDI.InputDevicesEnum (

short *nCount

);


 

Parameter

Description

 

 

nCount

Reference that, on return from the method call, will contain the number of detected MIDI input devices.

 

 

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