BASS.NET API for the Un4seen BASS Audio Library

BassFxBASS_FX_GetVersion Method

BASS.NET API for the Un4seen BASS Audio Library
Retrieves the version number of the BASS_FX.DLL that is loaded.

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

public static int BASS_FX_GetVersion()

Return Value

Type: Int32
The BASS_FX version. For example, 0x02040103 (hex), would be version

There is no guarantee that a previous or future version of BASS_FX supports all the BASS_FX 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.

You might use the global constant BASSFXVERSION to check the major revision.

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


Checking the major version only:
if ( Utils.HighWord(BassFx.BASS_FX_GetVersion()) != BassFx.BASSFXVERSION )
  MessageBox.Show(this, "Wrong BassFx Version!");
Checking for full version "":
If BassFx.BASS_FX_GetVersion() < Utils.MakeLong(&H103, &H204) Then
  MessageBox.Show(Me, "Wrong BassFx Version!")
End If
if (BassFx.BASS_FX_GetVersion() < Utils.MakeLong(0x0103, 0x0204))
  MessageBox.Show(this, "Wrong BassFx Version!");
See Also