BASS.NET API for the Un4seen BASS Audio LibraryBassAsioBASS_ASIO_GetRate Method BASS.NET API for the Un4seen BASS Audio Library
Retrieves the current Asio device's sample rate.

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

[DllImportAttribute("bassasio.dll", CharSet = CharSet.Auto)]
public static double BASS_ASIO_GetRate()

Return Value

Type: Double
If succesful, the sample rate is returned, else -1 is returned. Use BASS_ASIO_ErrorGetCode to get the error code.

ERROR CODEDescription
BASS_ERROR_INITBASS_ASIO_Init(Int32, BASSASIOInit) has not been successfully called.

See Also