BASS.NET API for the Un4seen BASS Audio Library

MIDI_HEADERHeaderPtr Property

BASS.NET API for the Un4seen BASS Audio Library
Gets the pointer to the prepared MIDIHDR structure (or Zero if the header was not prepared).

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

public IntPtr HeaderPtr { get; }

Property Value

Type: IntPtr

Access this member to retrieve a pointer to the MIDIHDR structure.

In order to use the MIDI_HEADER with a Midi function (e.g. MIDI_InAddBuffer(IntPtr, IntPtr) or MIDI_OutLongMsg(IntPtr, IntPtr)) you must first call the Prepare(Boolean, IntPtr) method which provides this member.

Make sure, that you always call Unprepare(Boolean, IntPtr) once you prepared the header with the Prepare(Boolean, IntPtr) method and received back the header from the Midi device in order to release all unmanaged recourses!

See Also