BASS.NET API for the Un4seen BASS Audio LibraryBassMidiBASS_MIDI_FontInitUser Method BASS.NET API for the Un4seen BASS Audio Library
Initializes a soundfont via user callback functions.

Namespace: Un4seen.Bass.AddOn.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

[DllImportAttribute("bassmidi.dll", CharSet = CharSet.Unicode)]
public static int BASS_MIDI_FontInitUser(
	BASS_FILEPROCS procs,
	IntPtr user,
	BASSFlag flags
)

Parameters

procs
Type: Un4seen.BassBASS_FILEPROCS
The user defined file function (see BASS_FILEPROCS).
user
Type: SystemIntPtr
User instance data to pass to the callback functions.
flags
Type: Un4seen.BassBASSFlag
Unused.

Return Value

Type: Int32
If successful, the soundfont's handle is returned, else 0 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

The unbuffered file system (STREAMFILE_NOBUFFER) is always used by this function.

ERROR CODEDescription
BASS_ERROR_FILEFORMThe file's format is not recognised/supported.

See Also

Reference