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

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

[DllImportAttribute("bassasio.dll", CharSet = CharSet.Auto)]
public static int BASS_ASIO_GetVersion()

Return Value

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

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

Examples

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

Reference