BASS.NET API for the Un4seen BASS Audio Library

FILEOPENPROC Delegate

BASS.NET API for the Un4seen BASS Audio Library
User file opening callback function.

Namespace:  Un4seen.Bass
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.18.2
Syntax

public delegate IntPtr FILEOPENPROC(
	string filename,
	BASSConfig flags
)

Parameters

filename
Type: SystemString
The file to open.
flags
Type: Un4seen.BassBASSConfig
A combination of these flags:
BASS_UNICODEfilename is in UTF-16 form. Otherwise it is ANSI on Windows and UTF-8 on other platforms.

Return Value

Type: IntPtr
If failed, 0 = let BASS try its own file functions, -1 = do not try the BASS functions. Otherwise the file was successful opened and the return value becomes the 'user' parameter for the other BASS_FILEOPENPROCS functions.
Remarks

Except on Windows, the BASS_UNICODE flag will never be set because UTF-16 filenames are pre-converted to UTF-8.
See Also

Reference