BASS_ASIO_SetRate
Sets the device's sample rate.
BOOL BASS_ASIO_SetRate(
double rate
);
Parameters
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_INIT | BASS_ASIO_Init has not been successfully called.
|
BASS_ERROR_NOTAVAIL | The sample rate is not supported by the device/drivers.
|
BASS_ERROR_UNKNOWN | Some 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