BASS.NET API for the Un4seen BASS Audio Library

BassVstBASS_VST_SetChunk Method

BASS.NET API for the Un4seen BASS Audio Library
Sets the VST plug-in state with a plain byte array (memory chunk storage).

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

public static int BASS_VST_SetChunk(
	int vstHandle,
	bool isPreset,
	byte[] chunk
)

Parameters

vstHandle
Type: SystemInt32
The VST effect handle as returned by BASS_VST_ChannelSetDSP(Int32, String, BASSVSTDsp, Int32).
isPreset
Type: SystemBoolean
when restoring a single program; for all programs.
chunk
Type: SystemByte
The byte array containing the memory chunk storage to set.

Return Value

Type: Int32
The number of bytes written.
Remarks

Might be used to restore a VST plug-in state which was previously saved via BASS_VST_GetChunk(Int32, Boolean, Int32).

After restoring a plug-in state you might need to retrieve the program names again (see BASS_VST_GetProgramName(Int32, Int32) resp. BASS_VST_GetProgramCount(Int32)) as they might have changed.

See Also

Reference