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

 

 

Syntax

 

[Visual Basic]

Public Function InputDevicesStartOnPlayer (

nDeviceIndex as Int32,

nPlayerIndex as Int16

) as enumErrorCodes


 

[C#]

public enumErrorCodes InputDevicesStartOnPlayer (

Int32 nDeviceIndex,

Int16 nPlayerIndex

);


 

[C++]

public: enumErrorCodes InputDevicesStartOnPlayer (

Int32 nDeviceIndex,

Int16 nPlayerIndex

);


 

 

 

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.

nPlayerIndex

Number representing the zero-based index of the involved player

 

 

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.