BASS.NET API for the Un4seen BASS Audio LibraryBassDShowBASS_DSHOW_GetVersion Method (Int32)BASS.NET API for the Un4seen BASS Audio Library
Retrieves the version of the BASS_DSHOW.DLL that is loaded.

Namespace: Un4seen.Bass.AddOn.DShow
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.13.3
Syntax

public static Version BASS_DSHOW_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 BASS_DSHOW version (major.minor.build.revision).
Remarks

There is no guarantee that a previous or future version of BASS_DSHOW supports all the BASS_DSHOW 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.

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

Examples

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

Reference