Copyright © 2001-2019 MultiMedia Soft

MIDI.InputDevicesStop method

Previous pageReturn to chapter overviewNext page

Remarks

 

Stops a MIDI input device previously started through the MIDI.InputDevicesStartOnPlayer method or through 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.InputDevicesStop (

nDeviceIndex as Integer

) as BSTR


 

[C++]

BSTR control.MIDI.InputDevicesStop (

short nDeviceIndex

);


\

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.

 

 

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