BASS_ASIO_SetRate

Sets the device's sample rate.

BOOL BASS_ASIO_SetRate(
    double rate
);

Parameters

rateThe sample rate.

Return value

If successful, then TRUE is returned, else FALSE is returned. Use BASS_ASIO_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_INITBASS_ASIO_Init has not been successfully called.
BASS_ERROR_NOTAVAILThe sample rate is not supported by the device/drivers.
BASS_ERROR_UNKNOWNSome other mystery problem!

Remarks

When it is not possible to set the device to the rate wanted, BASS_ASIO_ChannelSetRate can be used to overcome that.

See also

BASS_ASIO_ChannelSetRate, BASS_ASIO_CheckRate, BASS_ASIO_GetRate