Copyright © 2013-2014 MultiMedia Soft

MidiDevices.InputOutputConnect method

Previous pageReturn to chapter overviewNext page

Remarks

 

Establishes a direct connection between the given MIDI input device and the given MIDI output device. After the connection is established, the connection can be terminated through the MidiDevices.InputOutputDisconnect method.

 

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

 

When the connection is established, each MIDI message incoming from the MIDI input device will be automatically forwarded to the MIDI output device.

 

For further details about the use of MIDI devices see the ClassMidiDevices class section and the How to manage MIDI devices tutorial.

 

 

Syntax

 

[Visual Basic]

MidiDevices.MidiDevices.InputOutputConnect (

nInputDeviceUniqueId as Int16,

nOutputDeviceUniqueId as Int16

) as enumDjcErrorCodes


 

[C#]

public enumDjcErrorCodes MidiDevices.InputOutputConnect (

Int16 nInputDeviceUniqueId,

Int16 nInputDeviceUniqueId

);


 

[C++]

public: enumDjcErrorCodes MidiDevices.InputOutputConnect (

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.