BASS.NET API for the Un4seen BASS Audio LibraryBassMidiBASS_MIDI_ConvertEvents Method (Byte, BASS_MIDI_EVENT, Int32, BASSMIDIEventMode)BASS.NET API for the Un4seen BASS Audio Library
Converts raw MIDI data to BASS_MIDI_EVENT structures.

Namespace: Un4seen.Bass.AddOn.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.13.3
Syntax

public static int BASS_MIDI_ConvertEvents(
	byte[] data,
	BASS_MIDI_EVENT[] events,
	int count,
	BASSMIDIEventMode flags
)

Parameters

data
Type: SystemByte
The raw MIDI data.
events
Type: Un4seen.Bass.AddOn.MidiBASS_MIDI_EVENT
The array to receive the events... = get the number of events without getting the events themselves.
count
Type: SystemInt32
The maximum number of events to convert.
flags
Type: Un4seen.Bass.AddOn.MidiBASSMIDIEventMode
Any combination of these flags (see BASSMIDIEventMode):
BASS_MIDI_EVENTS_NORSTATUSDisable running status, meaning each event must include a status byte.
BASS_MIDI_EVENTS_TIMEThe raw MIDI data includes delta-time info.

Return Value

Type: Int32
If successful, the number of events processed is returned, else -1 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

ERROR CODEDescription
BASS_ERROR_UNKNOWNSome mystery problem.

See Also

Reference