BASS.NET API for the Un4seen BASS Audio Library

BassVstBASS_VST_SetProgram Method

BASS.NET API for the Un4seen BASS Audio Library
Sets (changes) the selected program for the VST effect.

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

[DllImportAttribute("bass_vst")]
public static bool BASS_VST_SetProgram(
	int vstHandle,
	int programIndex
)

Parameters

vstHandle
Type: SystemInt32
The VST effect handle as returned by BASS_VST_ChannelSetDSP(Int32, String, BASSVSTDsp, Int32).
programIndex
Type: SystemInt32
The program number to set (between 0 and BASS_VST_GetProgramCount(Int32) minus 1.).

Return Value

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

You might call BASS_VST_GetProgramCount(Int32) to check, if the VST effect has any editable programs available.

With BASS_VST_GetProgram(Int32) you can check, which is the current selected program. Functions as as BASS_VST_SetParam(Int32, Int32, Single) will always change the selected program's settings.

See Also

Reference