BASS.NET API for the Un4seen BASS Audio LibraryBassVstBASS_VST_ChannelRemoveDSP Method BASS.NET API for the Un4seen BASS Audio Library
Removes a VST effect from a channel and destroys the VST instance.

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

[DllImportAttribute("bass_vst.dll", CharSet = CharSet.Auto)]
public static bool BASS_VST_ChannelRemoveDSP(
	int chan,
	int vstHandle
)

Parameters

chan
Type: SystemInt32
The channel handle from which to remove the VST effect... a HSTREAM, HMUSIC, or HRECORD.
vstHandle
Type: SystemInt32
The VST effect handle as returned by BASS_VST_ChannelSetDSP(Int32, String, BASSVSTDsp, Int32).

Return Value

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

If you do not call BASS_VST_ChannelRemoveDSP(Int32, Int32) explicitly and you have assigned a channel to the effect, the effect is removed automatically when the channel handle is deleted by BASS (like for any other DSP as well).

For various reasons, the underlying DLL is unloaded from memory with a little delay, however, this has also the advantage that subsequent adding/removing of DLLs to channels has no bad performance impact.

See Also

Reference