BASS_ATTRIB_TEMPO_FREQ

BASS FX

BASS_ATTRIB_TEMPO_FREQ attribute

Set sample rate of a channel.

BOOL BASS_ChannelSetAttribute(
    DWORD handle,
    BASS_ATTRIB_TEMPO_FREQ,
    float freq
);

Parameters

handleTempo stream (or source channel) handle
freqSamplerate in Hz (must be within 5% to 5000% of the original sample rate)

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 invalid
BASS_ERROR_ILLPARAM An illegal parameter was specified

Info
Sample Rate : Changes both the sound tempo and pitch, as if an LP disc was played at wrong RPM rate.

See also
BASS_FX_TempoCreate, BASS_FX_TempoGetSourceBASS_FX_TempoGetRateRatio