Retrieves information on a drive.
Namespace: Un4seen.Bass.AddOn.Cd
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
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: BooleanIf successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
ERROR CODE | Description |
---|---|
BASS_ERROR_DEVICE | drive is invalid. |
Examples
BASS_CD_INFO info = new BASS_CD_INFO(); if ( BassCd.BASS_CD_GetInfo(0, info) ) Console.WriteLine( info.ToString() );
bool canReadCDText = false; BASS_CD_INFO info = new BASS_CD_INFO(); if (BassCd.BASS_CD_GetInfo(0, info) && info.cdtext) { canReadCDText = true; }
See Also