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 can be retrieved using BASS_MIDI_FontGetInfo.

See also

BASS_MIDI_FontFree, BASS_MIDI_FontGetInfo, BASS_MIDI_FontUnload, BASS_CONFIG_MIDI_COMPACT