BASS_ASIO_GetVersion

Retrieves the version of BASSASIO that is loaded.

DWORD BASS_ASIO_GetVersion();

Return value

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 revisions (indicated in the LOWORD) will be fully compatible.

The BASSASIO API includes a BASSASIOVERSION constant, which can be used to check that the loaded BASSASIO.DLL matches the API version used, ignoring revisions.

Example

Check that the correct BASSASIO version is loaded, ignoring the revision.
if (HIWORD(BASS_ASIO_GetVersion()) != BASSASIOVERSION) {
    // incorrect version loaded!
}

Check that revision 1.0 (or above) of the correct BASSASIO version is loaded.

if (HIWORD(BASS_ASIO_GetVersion()) != BASSASIOVERSION // check the main version
    || LOWORD(BASS_ASIO_GetVersion()) < 0x100) { // check the revision
    // incorrect version loaded!
}