BASS_MIDI_FontInitUser
Initializes a soundfont via user callback functions.
HSOUNDFONT BASS_MIDI_FontInitUser(
BASS_FILEPROCS *procs,
void *user,
DWORD flags
);
Parameters
procs | The user defined file functions.
|
user | User instance data to pass to the callback functions.
|
flags | Any combination of these flags.
BASS_MIDI_FONT_XGDRUMS | Use bank 127 in the soundfont for XG drum kits. When an XG drum kit is needed, bank 127 in soundfonts that have this flag set will be checked first, before falling back to bank 128 (the standard SF2 drum kit bank) if it is not available there.
|
|
Return value
If successful, the soundfont's handle is returned, else 0 is returned. Use
BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_FILEFORM | The file's format is not recognised/supported.
|
Remarks
The unbuffered file system (STREAMFILE_NOBUFFER) is always used by this function.
See also
BASS_MIDI_FontFree,
BASS_MIDI_FontGetInfo,
BASS_MIDI_FontGetPresets,
BASS_MIDI_FontInit,
BASS_MIDI_FontPack,
BASS_MIDI_FontLoad,
BASS_MIDI_FontSetVolume,
BASS_MIDI_StreamSetFonts,
BASS_CONFIG_MIDI_COMPACT