BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_PluginFree Method BASS.NET API for the Un4seen BASS Audio Library
Unplugs an add-on.

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

[DllImportAttribute("bass.dll", CharSet = CharSet.Unicode)]
public static bool BASS_PluginFree(
	int handle
)

Parameters

handle
Type: SystemInt32
The plugin handle... 0 = all plugins.

Return Value

Type: Boolean
If successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

If there are streams created by a plugin in existence when it is being freed, the streams will automatically be freed too. Samples loaded by the plugin are unaffected as the plugin has nothing to do with them once they are loaded (the sample data is already fully decoded).

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.

Examples

Add-On residing in same directory:
VB
' load the FLAC add-on
Dim pluginFlac As Integer = Bass.BASS_PluginLoad("bassflac.dll")
...
' use the add-on
Dim stream As Integer = Bass.BASS_StreamCreateFile("file.flac", 0, 0, BASSFlag.BASS_DEFAULT)
...
' un-load the FLAC add-on
Bass.BASS_PluginFree(pluginFlac)
// load the FLAC add-on
int pluginFlac = Bass.BASS_PluginLoad("bassflac.dll");
...
// use the add-on
int stream = Bass.BASS_StreamCreateFile("file.flac", 0, 0, BASSFlag.BASS_DEFAULT);
...
// un-load the FLAC add-on
Bass.BASS_PluginFree(pluginFlac);
See Also

Reference