BASS.NET API for the Un4seen BASS Audio Library

BassBASS_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.17.5
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:
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