BASS.NET API for the Un4seen BASS Audio Library

BassMidiBASS_MIDI_FontUnload Method

BASS.NET API for the Un4seen BASS Audio Library
Unloads presets from a soundfont.

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_FontUnload(
	int handle,
	int preset,
	int bank
)

Parameters

handle
Type: SystemInt32
The soundfont handle.
preset
Type: SystemInt32
Preset number to load... -1 = all presets.
bank
Type: SystemInt32
Bank number to load... -1 = all banks.

Return Value

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

An unloaded preset will be loaded again when needed by a MIDI stream. Any samples that are currently being used by a MIDI stream will not be unloaded.

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.
BASS_ERROR_NOTAVAILThe soundfont does not contain the specified preset, or the soundfont is memory mapped.

See Also

Reference