BASS.NET API for the Un4seen BASS Audio LibraryMidiSysExMessage Constructor (Boolean, IntPtr, IntPtr)BASS.NET API for the Un4seen BASS Audio Library
Creates a new instance of the MidiSysExMessage from a pointer to a MIDI_HEADER.

Namespace: radio42.Multimedia.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public MidiSysExMessage(
	bool input,
	IntPtr handle,
	IntPtr headerPtr
)

Parameters

input
Type: SystemBoolean
Dealing with a Midi input device? (=input, =output).
handle
Type: SystemIntPtr
The handle to the MIDI device.
headerPtr
Type: SystemIntPtr
A pointer to a MIDI_HEADER structure to use with this system-exclusive message.
Remarks

You might use this constuctor in your MIDIINPROC or MIDIOUTPROC when receiving a MIM_LONGDATA, MIM_LONGERROR resp. MOM_DONE message with the 'prarm1' value.

Calling this constructor with a valid pointer to a MIDI_HEADER structure will automatically unprepare the header (using Unprepare(Boolean, IntPtr))! However, that data of the header will first be copied to this class so it is still accessable.

The Message data buffer will only be set, if the IsDone flag was set - meaning the Midi device finished with the buffer.

See Also

Reference