BASS.NET API for the Un4seen BASS Audio Library

BassMixBASS_Mixer_GetVersion Method

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

Namespace:  Un4seen.Bass.AddOn.Mix
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

[DllImportAttribute("bassmix")]
public static int BASS_Mixer_GetVersion()

Return Value

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

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

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

Examples

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

Reference