Copyright © 2001-2018 MultiMedia Soft

MIDI.InputDevicesStartOnPlayer method

Previous pageReturn to chapter overviewNext page

Remarks

 

After having enumerated, through a call to the MIDI.InputDevicesEnum method, the list of available MIDI input devices installed inside the system, starts a MIDI input device and send incoming MIDI events directly to the MIDI stream loaded inside a player instanced by the component.

If incoming MIDI events should be managed without the need of immediate playback it would be recommended using the MIDI.InputDevicesStart 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.InputDevicesStartOnPlayer (

nDeviceIndex as Integer,

nPlayer as Integer

) as BSTR


 

[C++]

BSTR control.MIDI.InputDevicesStartOnPlayer (

short nDeviceIndex,

short nPlayer

);


\

Parameter

Description

 

 

nDeviceIndex

Number representing the zero-based index of the MIDI input device. The number of available MIDI input devices installed inside the system can be obtained directly to the MIDI.InputDevicesEnum method or, after having performed the enumeration, through the MIDI.InputDevicesCountGet method.

nPlayer

Number representing the zero-based index of the involved player

 

 

 

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