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 (appropriate BASS add-on not loaded), 0 = not packed.

Remarks

The name, copyright and comment information might not be included in some SF2 files. Only the presets, samload and samtype members are available with SFZ files, with the samtype value reflecting the most recently loaded encoded sample (it is possible for different samples to use different encoding).

See also

BASS_MIDI_FontGetInfo