BASS.NET API for the Un4seen BASS Audio Library

BassSfxBASS_SFX_PluginStart Method

BASS.NET API for the Un4seen BASS Audio Library
Starts a visual plugin.

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_PluginStart(
	int handle
)

Parameters

handle
Type: SystemInt32
The SFX plugin handle (as obtained by BASS_SFX_PluginCreate(String, IntPtr, Int32, Int32, BASSSFXFlag)).

Return Value

Type: Boolean
If successful, then is returned, else is returned.
Remarks

Use BASS_SFX_PluginStop(Int32) to stop a SFX plugin.

ERROR CODEDescription
BASS_SFX_ERROR_INITBASS_SFX_Init(IntPtr, IntPtr) has not been successfully called.
BASS_SFX_ERROR_HANDLEInvalid SFX handle.
BASS_SFX_ERROR_UNKNOWNSome other mystery problem!

Examples

// create a BASS channel
int stream = Bass.BASS_StreamCreateFile("test.mp3", 0L, 0L, BASSFlag.BASS_DEFAULT);
// create a plugin object
int sfx = BassSfx.BASS_SFX_PluginCreate("corona.svp", pictureBox1.Handle, pictureBox1.Width, pictureBox1.Height, BASSSFXFlag.BASS_SFX_DEFAULT); 
if (sfx != 0 && stream != 0)
{
    // loaded file successfully
    if (BASS_SFX_PluginStart(sfx))
        BASS_SFX_PluginSetStream(sfx, stream);
}
See Also

Reference