BASS.NET API for the Un4seen BASS Audio Library

MIDI_HEADERUnprepare Method

BASS.NET API for the Un4seen BASS Audio Library
Unprepares the MIDI_HEADER structure and frees all used resources.

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

public void Unprepare(
	bool input,
	IntPtr handle
)

Parameters

input
Type: SystemBoolean
Dealing with a Midi input device? (=input, =output).
handle
Type: SystemIntPtr
The handle to the MIDI device.
Remarks

This function is complementary to Prepare(Boolean, IntPtr). You must call this method in order to free all uses and allocated resources. After passing a MIDIHDR structure to a Midi device by using the MIDI_InAddBuffer(IntPtr, IntPtr) or MIDI_OutLongMsg(IntPtr, IntPtr) function, you must wait until the driver is finished with the MIDIHDR before using MIDI_InUnprepareHeader(IntPtr, IntPtr) (this is at best done within the callback procedure MIDIINPROC resp. MIDIOUTPROC).
See Also

Reference