BASS.NET API for the Un4seen BASS Audio LibraryBassMidiBASS_MIDI_FontFree Method BASS.NET API for the Un4seen BASS Audio Library
Frees a soundfont.

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

[DllImportAttribute("bassmidi.dll", CharSet = CharSet.Unicode)]
public static bool BASS_MIDI_FontFree(
	int handle
)

Parameters

handle
Type: SystemInt32
The soundfont handle to free (e.g. as returned by BASS_MIDI_FontInit(String, BASSFlag)).

Return Value

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

When a soundfont is freed, it is automatically removed from any MIDI streams that are using it.

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.

See Also

Reference