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: BooleanIf 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 CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not valid. |
BASS_ERROR_NOTAVAIL | The soundfont does not contain the specified preset, or the soundfont is memory mapped. |
See Also