BASS.NET API for the Un4seen BASS Audio LibraryBassEncBASS_Encode_GetVersion Method (Int32)BASS.NET API for the Un4seen BASS Audio Library
Retrieves the version of the BASSenc.DLL that is loaded.

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

public static Version BASS_Encode_GetVersion(
	int fieldcount


Type: SystemInt32
The number of components to use. The fieldCount ranges from 1 to 4 (

Return Value

Type: Version
The BASSenc version (

There is no guarantee that a previous or future version of BASSenc supports all the BASSenc functions that you are using, so you should always use this function to make sure the correct version is loaded. It is safe to assume that future minor revisions (indicated in the LOWORD) will be fully compatible.

Note: Calling this method will also automatically load the library into memory.


Dim expectedVersion As New Version(2, 4)
If BassEnc.BASS_Encode_GetVersion(2) < expectedVersion Then
  MessageBox.Show(Me, "Wrong BassEnc Version!")
End If
Version expectedVersion = new Version(2, 4);
if (BassEnc.BASS_Encode_GetVersion(2) < expectedVersion)
  MessageBox.Show( this, "Wrong BassEnc Version!" );
See Also