BASS.NET API for the Un4seen BASS Audio LibraryBassCdBASS_CD_GetInfo Method (Int32, BASS_CD_INFO)BASS.NET API for the Un4seen BASS Audio Library
Retrieves information on a drive.

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

public static bool BASS_CD_GetInfo(
	int drive,
	BASS_CD_INFO info
)

Parameters

drive
Type: SystemInt32
The drive to get info on... 0 = the first drive.
info
Type: Un4seen.Bass.AddOn.CdBASS_CD_INFO
An instance of the BASS_CD_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

ERROR CODEDescription
BASS_ERROR_DEVICEdrive is invalid.

Examples

VB
Dim info As New BASS_CD_INFO()
If BassCd.BASS_CD_GetInfo(0, info) Then
  Console.WriteLine(info.ToString())
End If
BASS_CD_INFO info = new BASS_CD_INFO();
if ( BassCd.BASS_CD_GetInfo(0, info) )
    Console.WriteLine( info.ToString() );
Check if the first drive can read CD-TEXT:
VB
Dim canReadCDText As Boolean = False
Dim info As New BASS_CD_INFO()
If BassCd.BASS_CD_GetInfo(0, info) AndAlso info.cdtext Then
  canReadCDText = True
End If
bool canReadCDText = false;
BASS_CD_INFO info = new BASS_CD_INFO();
if (BassCd.BASS_CD_GetInfo(0, info) && info.cdtext)
{
  canReadCDText = true;
}
See Also

Reference