BASS.NET API for the Un4seen BASS Audio Library

BassVstBASS_VST_SetParamRestoreDefaults Method

BASS.NET API for the Un4seen BASS Audio Library
Restores all default values for all VST effect parameters (on the current selected program).

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

public static void BASS_VST_SetParamRestoreDefaults(
	int vstHandle
)

Parameters

vstHandle
Type: SystemInt32
The VST effect handle as returned by BASS_VST_ChannelSetDSP(Int32, String, BASSVSTDsp, Int32).
Remarks

Internally all default values for all parameters are retried BASS_VST_GetParamInfo(Int32, Int32, BASS_VST_PARAM_INFO).
Examples

// assign a Vst effect to a channel
int vst = BassVst.BASS_VST_ChannelSetDSP(_stream, 
                  "C:\\VstPlugins\\Ambience.dll", BASSVSTDsp.BASS_VST_DEFAULT, 0);

// change some parameters (e.g. #1 to 0.75)
BassVst.BASS_VST_SetParam(vst, 1, 0.75f);

// restore all parameters to it's default values
BassVst.BASS_VST_SetParamRestoreDefaults(vst);
See Also

Reference