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

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

public static Version BASS_WASAPI_GetVersion(
	int fieldcount
)

Parameters

fieldcount
Type: SystemInt32
The number of components to use. The fieldCount ranges from 1 to 4 (major.minor.build.revision).

Return Value

Type: Version
The BASSWASAPI version (major.minor.build.revision).
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.
Examples

VB
Dim expectedVersion As New Version(2, 4)
If BassWasapi.BASS_WASAPI_GetVersion(2) < expectedVersion Then
  MessageBox.Show(Me, "Wrong BassWasapi Version!")
End If
Version expectedVersion = new Version(2, 4);
if (BassWasapi.BASS_WASAPI_GetVersion(2) < expectedVersion)
{
  MessageBox.Show( this, "Wrong BassWasapi Version!" );
}
See Also

Reference