BASS_MIDI_FontFree

Frees a soundfont.

BOOL BASS_MIDI_FontFree(
    HSOUNDFONT handle
);

Parameters

handleThe soundfont handle.

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

When a soundfont is freed, it is automatically removed from any MIDI streams that are using it.

See also

BASS_MIDI_FontCompact, BASS_MIDI_FontInit