BASS.NET API for the Un4seen BASS Audio LibraryBassVstBASS_VST_SetBypass Method BASS.NET API for the Un4seen BASS Audio Library
Bypasses the effect processing (state=) or switch back to normal processing (state=).

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_SetBypass(
	int vstHandle,
	bool state
)

Parameters

vstHandle
Type: SystemInt32
The VST effect handle as returned by BASS_VST_ChannelSetDSP(Int32, String, BASSVSTDsp, Int32).
state
Type: SystemBoolean
to bypasses the effect processing; to switch back to normal processing.

Return Value

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

By default bypassing is OFF and the effect will be processed normally. Use BASS_VST_GetBypass(Int32) returns the current state.

Note, that the bypassing is completely done by BASS_VST, we're not using the so-called "soft" bypass that is implemented by some effects. This is for the following reasons:

- Soft-bypassing is not supported by all effects

- The state of soft-bypassing cannot be queried safely

- Soft-bypassing would not be a real bypass as some channel transformations may still be needed

- Performance reasons - soft-bypassing would require still most of the needed BASS_VST transformations

- Finally, I do not see any advantages of the soft-bypassing

Soft bypassing is not supported in the BASS.NET API.

See Also

Reference