BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_GetInfo Method (BASS_INFO)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

[DllImportAttribute("bass.dll", CharSet = CharSet.Unicode)]
public static bool BASS_GetInfo(
	BASS_INFO info
)

Parameters

info
Type: Un4seen.BassBASS_INFO
An instance of the BASS_INFO class to store the information at.

Return Value

Type: Boolean
If successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
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

VB
If Bass.BASS_Init(- 1, 44100, BASSInit.BASS_DEVICE_DEFAULT, Me.Handle) Then
  Dim info As New BASS_INFO()
  If Bass.BASS_GetInfo(info) Then
    Console.WriteLine(info.ToString())
  End If
End If
if ( Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, this.Handle) )
{
  BASS_INFO info = new BASS_INFO();
  if (Bass.BASS_GetInfo(info))
    Console.WriteLine( info.ToString() );
}
See Also

Reference