BASS.NET API for the Un4seen BASS Audio LibraryMIDI_HEADER Constructor (Int32)BASS.NET API for the Un4seen BASS Audio Library
Initializes a new instance of the MIDI_HEADER with an empty data buffer of the given size.

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

public MIDI_HEADER(
	int size
)

Parameters

size
Type: SystemInt32
The number of bytes for the data buffer (between 2 and 65536).
Remarks

If a size is given outside the range of 2 and 65536 the default size of 256 will be used.

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 a HeaderPtr to be used.

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

Reference