BASS.NET API for the Un4seen BASS Audio LibraryBassMidiBASS_MIDI_FontGetInfo Method (Int32, BASS_MIDI_FONTINFO)BASS.NET API for the Un4seen BASS Audio Library
Retrieves information on a soundfont.

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

public static bool BASS_MIDI_FontGetInfo(
	int handle,
	BASS_MIDI_FONTINFO info
)

Parameters

handle
Type: SystemInt32
The soundfont to get info on (e.g. as returned by BASS_MIDI_FontInit(String, BASSFlag)).
info
Type: Un4seen.Bass.AddOn.MidiBASS_MIDI_FONTINFO
An instance of the BASS_MIDI_FONTINFO class to store the information at.

Return Value

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

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.

Examples

VB
Dim font1 As Integer = BassMidi.BASS_MIDI_FontInit("afont.sf2")
Dim fontInfo As New BASS_MIDI_FONTINFO()
BassMidi.BASS_MIDI_FontGetInfo(font1, fontInfo)
Console.WriteLine(fontInfo.ToString())
int font1 = BassMidi.BASS_MIDI_FontInit("afont.sf2");
BASS_MIDI_FONTINFO fontInfo = new BASS_MIDI_FONTINFO();
BassMidi.BASS_MIDI_FontGetInfo(font1, fontInfo);
Console.WriteLine( fontInfo.ToString() );
See Also

Reference