BASS.NET API for the Un4seen BASS Audio LibraryBassWasapiBASS_WASAPI_GetVersion Method BASS.NET API for the Un4seen BASS Audio Library
Retrieves the version number of the basswasapi.dll that is loaded.

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

[DllImportAttribute("basswasapi.dll", CharSet = CharSet.Auto)]
public static int BASS_WASAPI_GetVersion()

Return Value

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

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

Examples

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

Reference