BASS.NET API for the Un4seen BASS Audio LibraryMidiSysExMessagePrepare Method (IntPtr)BASS.NET API for the Un4seen BASS Audio Library
Prepares the MessageAsIntPtr out of the Message data buffer ready to be used with a device.

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

public bool Prepare(
	IntPtr user


Type: SystemIntPtr
User instance data to pass to the system-exclusive message (might be later retrieved via the User property).

Return Value

Type: Boolean
on success, else .

After you have called this method the Message should NOT be changed!

Use the MessageAsIntPtr property to retrieve the prepared pointer to the MIDI_HEADER which must be used to handle any system-exclusive message.

Use this property with the MIDI_InAddBuffer(IntPtr, IntPtr) method to provide a data buffer to an input device in order to receive a system-exclusive message.

Use this property with the MIDI_OutLongMsg(IntPtr, IntPtr) method to send a system-exclusive message to an output device.

Note: There is no 'Unprepare' method present in this class, since this will be handled automatically once you received a message back from the device and (re)create an instance of this class with the param1 IntPtr.

See Also