BASS.NET API for the Un4seen BASS Audio Library

BassMidiBASS_MIDI_FontCompact Method

BASS.NET API for the Un4seen BASS Audio Library
Compact a soundfont's memory usage.

Namespace:  Un4seen.Bass.AddOn.Midi
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

[DllImportAttribute("bassmidi")]
public static bool BASS_MIDI_FontCompact(
	int handle
)

Parameters

handle
Type: SystemInt32
The soundfont to get info on (e.g. as returned by BASS_MIDI_FontInit(String, BASSFlag))... 0 = all soundfonts.

Return Value

Type: Boolean
If successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

Compacting involves freeing any samples that are currently loaded but unused. The amount of sample data currently loaded can be retrieved using BASS_MIDI_FontGetInfo(Int32, BASS_MIDI_FONTINFO).

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.

See Also

Reference