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.17.5
Syntax
[DllImportAttribute("bass_sfx")] 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: BooleanIf an error occurred then is returned, else is returned.
Remarks
Call BASS_SFX_Free to free all resources and before your program exits.
ERROR CODE | Description |
---|---|
BASS_SFX_ERROR_ALREADY | Already initialized. |
BASS_SFX_ERROR_MEM | There is insufficient memory. |
BASS_SFX_ERROR_UNKNOWN | Some other mystery problem! |
Examples
See Also