BASS.NET API for the Un4seen BASS Audio Library

BassVstBASS_VST_GetProgram Method

BASS.NET API for the Un4seen BASS Audio Library
Returns the currently 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 int BASS_VST_GetProgram(
	int vstHandle
)

Parameters

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

Return Value

Type: Int32
The currect selected program number. Valid program numbers are between 0 and BASS_VST_GetProgramCount(Int32) minus 1.
Remarks

After construction (BASS_VST_ChannelSetDSP(Int32, String, BASSVSTDsp, Int32)), always the first program (0) is selected.

With BASS_VST_SetProgram(Int32, Int32) you can change the selected program. Functions as BASS_VST_SetParam(Int32, Int32, Single) will always change the selected program's settings.

See Also

Reference