BASS_ATTRIB_TEMPO_OPTION_PREVENT_CLICK

BASS FX

BASS_ATTRIB_TEMPO_OPTION_PREVENT_CLICK attribute

Prevents a clicking sound when the samplerate/pitch crosses from value <1 to >= 1 or vice versa during processing.

BOOL BASS_ChannelSetAttribute(
    DWORD handle,
    BASS_ATTRIB_TEMPO_OPTION_PREVENT_CLICK,
    float prevent_click
);

Parameters

handle Tempo stream (or source channel) handle
prevent_click

TRUE / FALSE

(default FALSE)

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

Remarks
Default is FALSE as this involves slight sound quality compromise.

Error codes

BASS_ERROR_HANDLE handle  is invalid
BASS_ERROR_ILLPARAM An illegal parameter was specified

See also
BASS_FX_TempoCreate, BASS_FX_TempoGetSourceBASS_FX_TempoGetRateRatio