BASS.NET API for the Un4seen BASS Audio Library

BassMidiBASS_MIDI_FontGetPresets Method

BASS.NET API for the Un4seen BASS Audio Library
Retrieves the presets in a soundfont.

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

public static int[] BASS_MIDI_FontGetPresets(
	int handle
)

Parameters

handle
Type: SystemInt32
The soundfont handle to get the preset name from.

Return Value

Type: Int32
If successful, an array of presets is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

The presets are delivered with the preset number in the LOWORD and the bank number in the HIWORD, and in numerically ascending order.

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.

See Also

Reference