BASS.NET API for the Un4seen BASS Audio LibraryBassSfxBASS_SFX_Init Method BASS.NET API for the Un4seen BASS Audio Library
Initialize the SFX library. This will initialize the library for use.

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

[DllImportAttribute("bass_sfx.dll", CharSet = CharSet.Auto)]
public static bool BASS_SFX_Init(
	IntPtr hInstance,
	IntPtr hWnd
)

Parameters

hInstance
Type: SystemIntPtr
Your application instance handle (i.e. Process.GetCurrentProcess().Handle).
hWnd
Type: SystemIntPtr
Your main windows form handle.

Return Value

Type: Boolean
If an error occurred then is returned, else is returned.
Remarks

Call this method prior to any other BASS_SFX methods.

Call BASS_SFX_Free to free all resources and before your program exits.

ERROR CODEDescription
BASS_SFX_ERROR_ALREADYAlready initialized.
BASS_SFX_ERROR_MEMThere is insufficient memory.
BASS_SFX_ERROR_UNKNOWNSome other mystery problem!

Examples

VB
BassSfx.BASS_SFX_Init()
BassSfx.BASS_SFX_Init();
See Also

Reference