Copyright © 2013-2015 MultiMedia Soft

MidiDjConsole.Connect method

Previous pageReturn to chapter overviewNext page

Remarks

 

Establishes a connection between the instance of the component and the given MIDI input and output devices of a DJ Console. After the connection is established, the connection can be terminated through the MidiDjConsole.Disconnect method.

 

In order to establish the connection, both involved input and output devices of the DJ Console must have been previously opened through the MidiDevices.Open method.

 

When a connection is established, the DJ Console can report back to the instance of the component all of the events occurring on the console's physical controls and receive commands from the container application, for example switching a led on/off, blinking a led or display a string of characters on an eventual display.

 

For further details about interfacing with MIDI DJ Consoles see the MidiDjConsole object section and the How to manage MIDI DJ consoles tutorial.

 

 

Syntax

 

[Visual Basic]

control.MidiDjConsole.Connect (

nInputDeviceUniqueId as Integer,

nOutputDeviceUniqueId as Integer

) as enumDjcErrorCodes


 

[C++]

short control.MidiDjConsole.Connect (

short nInputDeviceUniqueId,

short nInputDeviceUniqueId

);


 

 

 

Parameter

Description

 

 

nInputDeviceUniqueId

The unique identifier of the MIDI input device returned by a previous call to the MidiDevices.Open method.

nOutputDeviceUniqueId

The unique identifier of the MIDI output device returned by a previous call to the MidiDevices.Open method.

 

 

Return value

 

Value

Meaning

 

 

enumDjcErrorCodes.ERR_DJC_NOERROR (0)

The call was successful.

Negative value

An error occurred: see the LastError property for further error details or for a list of the possible error values.