BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_GetInfo Method BASS.NET API for the Un4seen BASS Audio Library
Retrieves information on the device being used.

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

public static BASS_INFO BASS_GetInfo()

Return Value

Type: BASS_INFO
An instance of the BASS_INFO class on success - or on error.
Remarks

When using multiple devices, the current thread's device setting (as set with BASS_SetDevice(Int32)) determines which device this function call applies to.

ERROR CODEDescription
BASS_ERROR_INITBASS_Init(Int32, Int32, BASSInit, IntPtr, IntPtr) has not been successfully called.

Examples

Check if the current device has DirectSound support:
VB
If Bass.BASS_Init(- 1, 44100, BASSInit.BASS_DEVICE_DEFAULT, Me.Handle) Then
  Dim info As BASS_INFO = Bass.BASS_GetInfo()
  If info IsNot Nothing AndAlso Not info.SupportsDirectSound Then
    Console.WriteLine("Device does NOT have DirectSound support")
  End If
End If
if ( Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, this.Handle) )
{
  BASS_INFO info = Bass.BASS_GetInfo();
  if (info != null && !info.SupportsDirectSound)
    Console.WriteLine("Device does NOT have DirectSound support");
}
See Also

Reference