BASS.NET API for the Un4seen BASS Audio Library

BassCdBASS_CD_GetInfo Method (Int32, Boolean)

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 BASS_CD_INFO BASS_CD_GetInfo(
	int drive,
	bool release
)

Parameters

drive
Type: SystemInt32
The drive to get info on... 0 = the first drive.
release
Type: SystemBoolean
Release the drive after obtaining the info?

If set, BASS_CD_Release(Int32) will be called right after (which might be required with some drivers).

Return Value

Type: BASS_CD_INFO
An instance of the BASS_CD_INFO class on success - or on error.
Remarks

ERROR CODEDescription
BASS_ERROR_DEVICEdrive is invalid.

Examples

BASS_CD_INFO info = BassCd.BASS_CD_GetInfo(0);
if ( info != null )
  Console.WriteLine( info.ToString() );
See Also

Reference