BASS.NET API for the Un4seen BASS Audio Library

BassAsioBASS_ASIO_CheckRate Method

BASS.NET API for the Un4seen BASS Audio Library
Checks if a sample rate is supported by the device.

Namespace:  Un4seen.BassAsio
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

[DllImportAttribute("bassasio")]
public static bool BASS_ASIO_CheckRate(
	double rate
)

Parameters

rate
Type: SystemDouble
The sample rate to check.

Return Value

Type: Boolean
If the sample rate is supported, then is returned, else is returned. Use BASS_ASIO_ErrorGetCode to get the error code.
Remarks

ERROR CODEDescription
BASS_ERROR_INITBASS_ASIO_Init(Int32, BASSASIOInit) has not been successfully called.
BASS_ERROR_NOTAVAILThe sample rate is not supported by the device/drivers.
BASS_ERROR_UNKNOWNSome other mystery problem!

See Also

Reference