BASS_FX_BPM_CallbackSet

BASS FX

BASS_FX_BPM_CallbackSet

Enable getting BPM value after period of time in seconds.

BOOL BASS_FX_BPM_CallbackSet(
    DWORD handle,
    BPMPROC *proc,
    double period,
    DWORD minMaxBPM,
    DWORD flags,
    void *user
);

Parameters

handleStream/music/wma/cd/any other supported add-on format
procUser defined function to receive the bpm value
periodDetection period in seconds
minMaxBPMSet min & max bpm, e.g: MAKELONG(LOWORD.HIWORD), LO=Min, HI=Max. 0 = defaults 29/200
flagsOnly BASS_FX_BPM_MULT2 flag is used
userUser instance data to pass to the callback function.

Return value
If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_HANDLE handle is not valid
BASS_ERROR_ILLPARAM    An illegal parameter was specified

See also
BASS_FX_BPM_DecodeGet, BASS_FX_BPM_CallbackReset, BASS_FX_BPM_Translate, BASS_FX_BPM_Free