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
public void Unprepare(
bool input,
IntPtr handle
)
Public Sub Unprepare (
input As Boolean,
handle As IntPtr
)
Parameters
- input
- Type: SystemBoolean
Dealing with a Midi input device? (=input, =output). - handle
- 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).
Reference