Used with BASS_MIDI_FontGetInfo to retrieve information on a soundfont.

typedef struct {
    char *name;
    char *copyright;
    char *comment;
    DWORD presets;
    DWORD samsize;
    DWORD samload;
    DWORD samtype;


nameName of the soundfont.
copyrightCopyright notice.
commentAny comments.
presetsThe number of presets/instruments in the soundfont.
samsizeThe total size (in bytes) of the sample data in the soundfont.
samloadThe amount of sample data currently loaded... -1 = the soundfont is memory mapped.
samtypeThe BASS_CTYPE_STREAM_xxx format of the sample data if it is packed... -1 = unknown format (supporting BASS add-on not loaded), 0 = not packed.


The name, copyright and comment information might not be included in some SF2 files, and never in SFZ files. With SFZ and SF3 files, samsize does not include any samples that have not been opened yet because their size in unknown, and samtype reflects the most recently opened encoded sample (it is possible for different samples to use different encoding).

The total sample data memory usage across all soundfonts is available via the BASS_CONFIG_MIDI_SAMPLEMEM option.

See also