Converts raw MIDI data to BASS_MIDI_EVENT structures.
Namespace: Un4seen.Bass.AddOn.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
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_NORSTATUS Disable running status, meaning each event must include a status byte. BASS_MIDI_EVENTS_TIME The raw MIDI data includes delta-time info.
Return Value
Type: Int32If successful, the number of events processed is returned, else -1 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
ERROR CODE | Description |
---|---|
BASS_ERROR_UNKNOWN | Some mystery problem. |
See Also