Copyright © 2013-2014 MultiMedia Soft

CallbackMidiDevicesEventShortReceivedSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Sets the function of the CallbackMidiDevicesConfigChanged callback delegate which notifies when a short MIDI event is received from a specific MIDI input device.

 

For further details about callback delegates see the How to synchronize the container application with the API tutorial.

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]

Public Function CallbackMidiDevicesEventShortReceivedSet (

nDeviceUniqueId as Int16,

function as CallbackMidiDevicesEventShortReceived,

nUserData as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes CallbackMidiDevicesEventShortReceivedSet (

Int16 nDeviceUniqueId,

CallbackMidiDevicesEventShortReceived function,

Int32 nUserData

);


 

[C++]

public: enumErrorCodes CallbackMidiDevicesEventShortReceivedSet (

Int16 nDeviceUniqueId,

CallbackMidiDevicesEventShortReceived function,

Int32 nUserData

);


 

 

Parameter

Description

 

 

nDeviceUniqueId

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

function

Callback function

nUserData

User instance data to pass to the callback function

 

 

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.