Copyright © 2005-2019 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 MIDIMan class section and the How to deal with MIDI protocol tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function StreamEventsRawApply (

nPlayerIndex as Int16,

pBuffer() as Byte,

nBufferLength as Int32,

bSendEventNotif as Boolean

) as Int32


 

[C#]

public Int32 StreamEventsRawApply (

Int16 nPlayerIndex,

byte[] pBuffer,

Int32 nBufferLength,

bool bSendEventNotif

);


 

[C++]

public: Int32 StreamEventsRawApply (

Int16 nPlayerIndex,

unsigned char __gc[] pBuffer,

Int32 nBufferLength,

bool bSendEventNotif

);


 

 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

pBuffer

Memory buffer containing raw MIDI events.

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:

Value

Meaning

false

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

true

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

Value > 0

The method call was successful and the returned value is the unique identifier of the event.