Copyright © 2013-2014 MultiMedia Soft

CallbackMidiDevicesConfigChanged delegate

Previous pageReturn to chapter overviewNext page

Remarks

 

Callback delegate invoked from a secondary thread when the configuration of MIDI devices is changed. This specific event is only generated for the first change of MIDI devices configuration and will not be fired again until the MidiDevices.Reset method is invoked.

 

In order to allow the component invoking this delegate at runtime, the container application must invoke the CallbackMidiDevicesConfigChangedSet method passing the address of the callback function.

 

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 Delegate Sub CallbackMidiDevicesConfigChanged (

nChangeType as enumMidiDevicesConfigChanges,

nUserData as Int32

)


 

[C#]

public delegate void CallbackMidiDevicesConfigChanged (

enumMidiDevicesConfigChanges nChangeType,

Int32 nUserData

)


 

[C++]

public delegate void CallbackMidiDevicesConfigChanged (

enumMidiDevicesConfigChanges nChangeType,

Int32 nUserData

)


 

 

Parameter

Description

 

 

nChangeType

Specifies which type of change(s) occurred inside the configuration of MIDI devices.

Can be a combination of the following values:

Mnemonic constant

Value

Meaning

MIDI_CHANGE_INPUT_ADDED

1

An input MIDI device has been added

MIDI_CHANGE_INPUT_REMOVED

2

An input MIDI device has been removed

MIDI_CHANGE_OUTPUT_ADDED

4

An output MIDI device has been added

MIDI_CHANGE_OUTPUT_REMOVED

8

An output MIDI device has been removed

nUserData

User instance data