BASS_MIDI_FONTINFO structure


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;
} BASS_MIDI_FONTINFO;

Members

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.

Remarks

The name, copyright and comment information might not be included in some SF2 files, and never in SFZ files. With SFZ files, samsize does not include any sample files that have not been opened yet (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

BASS_MIDI_FontGetInfo