BASS_FX_GetVersion

BASS FX

BASS_FX_GetVersion

Retrieves the version of BASS_FX that is loaded.

DWORD BASS_FX_GetVersion();

Return value
The BASS_FX version. For example, 0x02040103 (hex), would be version 2.4.1.3

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

BASS_FX version should be identical to BASS version, only the revision changes on updates.

The BASS API includes a BASSVERSION constant, which can be used to check that the loaded BASS.DLL and BASS_FX.DLL matches the API version used, ignoring revisions.

Example
Check that the correct BASS_FX version is loaded, ignoring the revision.

if (HIWORD(BASS_FX_GetVersion())!=BASSVERSION) {
    // incorrect version loaded!
}

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

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