Retrieves the version of the BASSASIO.DLL that is loaded.
Namespace:
Un4seen.BassAsio
Assembly:
Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
public static Version BASS_ASIO_GetVersion(
int fieldcount
)
Public Shared Function BASS_ASIO_GetVersion (
fieldcount As Integer
) As Version
Parameters
- fieldcount
- Type: SystemInt32
The number of components to use. The fieldCount ranges from 1 to 4 (major.minor.build.revision).
Return Value
Type:
VersionThe BASSASIO version (major.minor.build.revision).
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.
Version expectedVersion = new Version(2, 4);
if (BassAsio.BASS_ASIO_GetVersion(2) < expectedVersion)
{
MessageBox.Show( this, "Wrong BassAsio Version!" );
}
Dim expectedVersion As New Version(2, 4)
If BassAsio.BASS_ASIO_GetVersion(2) < expectedVersion Then
MessageBox.Show(Me, "Wrong BassAsio Version!")
End If
Reference