Copyright © 2005-2019 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 MIDIMan class section and the How to deal with MIDI protocol tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function InputDevicesEnum (

ByRef nCount as Int16

) as enumErrorCodes


 

[C#]

public enumErrorCodes InputDevicesEnum (

ref Int16 nCount

);


 

[C++]

public: enumErrorCodes InputDevicesEnum (

Int16 __gc *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 (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.