BASS.NET API for the Un4seen BASS Audio Library

BassCdBASS_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.17.5
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

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:
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