BASS.NET API for the Un4seen BASS Audio LibraryBassVstBASS_VST_GetParamCount Method BASS.NET API for the Un4seen BASS Audio Library
Returns the number of editable parameters for the VST effect.

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

public static int BASS_VST_GetParamCount(
	int vstHandle


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

Return Value

Type: Int32
The number of editable parameters or if the effect has no editable parameters, 0 is returned.

To set or get the individual parameters of a VST effect you might use BASS_VST_GetParamCount(Int32) alongside with BASS_VST_GetParam(Int32, Int32) and BASS_VST_SetParam(Int32, Int32, Single) to enumerate over the total number of effect parameters. To retrieve details about an individual parameter you might use BASS_VST_GetParamInfo(Int32, Int32, BASS_VST_PARAM_INFO). If the VST effect supports an embedded editor you might also invoke this one with BASS_VST_EmbedEditor(Int32, IntPtr). If the embedded editor also supports localization you might set the language in advance with BASS_VST_SetLanguage(String).

See Also