BASS_FX_BPM_CallbackSet
Enable getting BPM value after period of time in seconds.
BOOL BASS_FX_BPM_CallbackSet( |
Parameters
handle | Stream/music/wma/cd/any other supported add-on format |
proc | User defined function to receive the bpm value |
period | Detection period in seconds |
minMaxBPM | Set min & max bpm, e.g: MAKELONG(LOWORD.HIWORD), LO=Min, HI=Max. 0 = defaults 29/200 |
flags | Only BASS_FX_BPM_MULT2 flag is used |
user | User 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