Retrieves information on the Asio device being used.
Namespace:
Un4seen.BassAsio
Assembly:
Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
public static BASS_ASIO_INFO BASS_ASIO_GetInfo()
Public Shared Function BASS_ASIO_GetInfo As BASS_ASIO_INFO
Return Value
Type:
BASS_ASIO_INFOAn instance of the
BASS_ASIO_INFO class on success - else
.
As in BASS, simultaneously using multiple devices is supported in the BASSASIO API via a context switching system - instead of there being an extra "device" parameter in the function calls, the device to be used needs to be set via
BASS_ASIO_SetDevice(Int32) prior to calling the function. The device setting is local to the current thread, so calling functions with different devices simultaneously in multiple threads is not a problem.
Display the number of inputs and outputs of the current Asio device:
BassAsio.BASS_ASIO_Init(0, BASSASIOInit.BASS_ASIO_THREAD);
BASS_ASIO_INFO info = BassAsio.BASS_ASIO_GetInfo();
if ( info != null )
{
Console.WriteLine( info.ToString() );
}
BassAsio.BASS_ASIO_Init(0, BASSASIOInit.BASS_ASIO_THREAD)
Dim info As BASS_ASIO_INFO = BassAsio.BASS_ASIO_GetInfo()
If Not (info Is Nothing) Then
Console.WriteLine(info.ToString())
End If
Reference