BASS.NET API for the Un4seen BASS Audio LibraryMIDI_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:

public void Unprepare(
	bool input,
	IntPtr handle


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

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