BASS_FX_BPM_BeatCallbackSet

BASS FX

BASS_FX_BPM_BeatCallbackSet

Enable getting Beat position in seconds in real-time.

BOOL BASS_FX_BPM_BeatCallbackSet(
    DWORD handle,
    BPMBEATPROC *proc,
    void *user
);

Parameters

handleStream/music/wma/cd/any other supported add-on format
procUser defined function to receive the beat position in seconds
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 code

BASS_ERROR_HANDLE handle is not valid
BASS_ERROR_ILLPARAM An illegal parameter was specified

See also
BASS_FX_BPM_BeatDecodeGet, BASS_FX_BPM_BeatCallbackReset, BASS_FX_BPM_BeatSetParameters, BASS_FX_BPM_BeatGetParameters, BASS_FX_BPM_BeatFree