BASS_MIDI_FontCompact

Compacts a soundfont's memory usage.

BOOL BASS_MIDI_FontCompact(
    HSOUNDFONT handle
);

Parameters

handleThe soundfont handle... 0 = all soundfonts.

Return value

If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_HANDLEhandle is not valid.

Remarks

Compacting involves freeing any samples that are currently loaded but unused by any MIDI streams. The amount of sample data currently loaded for a specific soundfont can be retrieved using BASS_MIDI_FontGetInfo, and for all soundfonts with the BASS_CONFIG_MIDI_SAMPLEMEM config option.

See also

BASS_MIDI_FontFree, BASS_MIDI_FontGetInfo, BASS_MIDI_FontUnload, BASS_CONFIG_MIDI_COMPACT