MIDI.MarkersEnableNotifications method |
|
Remarks
Enables/disables the synchronization of the container application with a specific type of MIDI marker detected inside the loaded MIDI stream during playback.
When synchronization is enabled, the component fires the MidiMarkerNotification event for each specific marker enabled for notification.
Markers can also be enumerated offline, while the MIDI stream is not in playback, through the combination of the MIDI.MarkersEnum and of the MIDI:MarkersEnumItemGet methods.
For further details about the use of MIDI protocol see the MIDIMan class section and the How to deal with MIDI protocol tutorial.
Syntax
[Visual Basic] Public Function MarkersEnableNotifications ( nPlayerIndex as Int16, nMarkerType as enumMidiMarkerNotifications, bEnable as Boolean ) as enumErrorCodes |
[C#] public enumErrorCodes MarkersEnableNotifications ( Int16 nPlayerIndex, enumMidiMarkerNotifications nMarkerType, bool bEnable ); |
[C++] public: enumErrorCodes MarkersEnableNotifications ( Int16 nPlayerIndex, enumMidiMarkerNotifications nMarkerType, bool bEnable ); |
Parameter |
Description |
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
nPlayerIndex |
Number representing the zero-based index of the involved player |
||||||||||||||||||||||||||||||
nMarkerType |
The type of MIDI marker. Supported values are the following:
|
||||||||||||||||||||||||||||||
bEnable |
Boolean value that specifies if the finding of the given marker during playback must be notified through the MidiMarkerNotification event. Supported values are the following:
|
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred (see the LastError property for further error details) |
enumErrorCodes.NOERROR (0) |
The method call was successful. |