Copyright © 2001-2018 MultiMedia Soft

MIDI.StreamEventsRawApply method

Previous pageReturn to chapter overviewNext page

Remarks

 

Applies in one single shot a list of raw MIDI events stored inside a memory buffer.

 

For further details about the use of MIDI protocol see the MIDI object section and the How to deal with MIDI protocol tutorial.

 

 

Syntax

 

[Visual Basic]

control.MIDI.StreamEventsRawApply (

nPlayer as Integer,

pBuffer as Variant,

nBufferLength as Long,

bSendEventNotif as enumBoolean

) as enumErrorCodes


 

[C++]

short control.MIDI.StreamEventsRawApply (

short nPlayer,

const VARIANT FAR& pBuffer,

long nBufferLength,

short bSendEventNotif

);


\

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

pBuffer

Variant parameter containing the pointer to raw MIDI events previously loaded in memory.

nBufferLength

Length in bytes of the given buffer

bSendEventNotif

Boolean flag that specifies if the container application must be notified about the applied events through the MidiStreamEventNotification event.

Supported values are the following:

Mnemonic constant

Value

Meaning

BOOL_FALSE

0

The MidiStreamEventNotification event is not generated for MIDI events of the list.

BOOL_TRUE

1

The MidiStreamEventNotification event is generated for MIDI events of the list.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful