BASS.NET API for the Un4seen BASS Audio LibraryBassVstBASS_VST_ChannelCreate Method BASS.NET API for the Un4seen BASS Audio Library
Creates a new BASS stream based on any VST instrument plugin (VSTi).

This overload implements the Unicode overload for the dllFile name, so the BASS_UNICODE flag will automatically be added if not already set.

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

public static int BASS_VST_ChannelCreate(
	int freq,
	int chans,
	string dllFile,
	BASSFlag flags


Type: SystemInt32
The sample rate of the VSTi output (e.g. 44100).
Type: SystemInt32
The number of channels... 1 = mono, 2 = stereo, 4 = quadraphonic, 6 = 5.1, 8 = 7.1.
Type: SystemString
The fully qualified path and file name to the VSTi plugin (a DLL file name).
Type: Un4seen.BassBASSFlag
Any combination of these flags (see BASSFlag):
BASS_SAMPLE_FLOATProduce 32-bit floating-point output. WDM drivers or the BASS_STREAM_DECODE flag are required to use this flag in Windows. See Floating-point channels for more info.
BASS_SAMPLE_SOFTWAREForce the stream to not use hardware mixing. Note this only applies to playback of the mixer's output - the mixing of the source channels is always performed by BASSmix.
BASS_SAMPLE_3DUse 3D functionality. This is ignored if BASS_DEVICE_3D wasn't specified when calling BASS_Init(Int32, Int32, BASSInit, IntPtr, IntPtr). 3D streams must be mono (chans=1). The SPEAKER flags can not be used together with this flag.
BASS_SAMPLE_FXrequires DirectX 8 or above: Enable the old implementation of DirectX 8 effects. See the DX8 effect implementations section for details. Use BASS_ChannelSetFX(Int32, BASSFXType, Int32) to add effects to the stream.
BASS_STREAM_DECODEDecode the sample data, without outputting it. Use BASS_ChannelGetData(Int32, IntPtr, Int32) to retrieve decoded sample data. The BASS_SAMPLE_SOFTWARE, BASS_SAMPLE_3D, BASS_SAMPLE_FX, BASS_STREAM_AUTOFREE and SPEAKER flags can not be used together with this flag.
BASS_SPEAKER_xxxSpeaker assignment flags.

Return Value

Type: Int32
If successful, the new vst handle is returned, else 0 is returned. Use BASS_ErrorGetCode to get the error code.

On success, the function returns the new vstHandle that must be given to the other functions. The returned VST handle can also be given to the typical BASS_Channel* functions. Use BASS_VST_ChannelFree(Int32) to deletes and free a VST instrument channel.
See Also