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]

MidiDjConsole.Connect (

nInputDeviceUniqueId as Int16,

nOutputDeviceUniqueId as Int16

) as enumDjcErrorCodes


 

[C#]

public enumDjcErrorCodes MidiDjConsole.Connect (

Int16 nInputDeviceUniqueId,

Int16 nInputDeviceUniqueId

);


 

[C++]

public: enumDjcErrorCodes MidiDjConsole.Connect (

Int16 nInputDeviceUniqueId,

Int16 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

 

 

Negative value

An error occurred. Check the LastError property value in order to see the last error.

enumDjcErrorCodes.ERR_DJC_NOERROR (0)

The method call was successful.