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

Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

[DllImportAttribute("bass.dll", CharSet = CharSet.Unicode)]
public static int BASS_GetVersion()

Return Value

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

There is no guarantee that a previous or future version of BASS supports all the BASS 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 BASSVERSION to check the major revision.

Examples

Checking the major version only:
VB
If Utils.HighWord(Bass.BASS_GetVersion()) <> Bass.BASSVERSION Then
  MessageBox.Show(Me, "Wrong Bass Version!")
End If
if ( Utils.HighWord(Bass.BASS_GetVersion()) != Bass.BASSVERSION )
{
  MessageBox.Show(this, "Wrong Bass Version!");
}
Checking for full version "2.4.1.3":
VB
If Bass.BASS_GetVersion() < Utils.MakeLong(&H103, &H204) Then
  MessageBox.Show(Me, "Wrong Bass Version!")
End If
if (Bass.BASS_GetVersion() < Utils.MakeLong(0x0103, 0x0204))
{
  MessageBox.Show(this, "Wrong Bass Version!");
}
See Also

Reference