BASS.NET API for the Un4seen BASS Audio Library

BassCdBASS_CD_GetTracks Method

BASS.NET API for the Un4seen BASS Audio Library
Retrieves the number of tracks on the CD in a drive.

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

[DllImportAttribute("basscd")]
public static int BASS_CD_GetTracks(
	int drive
)

Parameters

drive
Type: SystemInt32
The drive... 0 = the first drive.

Return Value

Type: Int32
If an error occurs, -1 is returned, use BASS_ErrorGetCode to get the error code. If successful, the number of tracks on the CD is returned.
Remarks

ERROR CODEDescription
BASS_ERROR_DEVICEdrive is invalid.
BASS_ERROR_NOCDThere's no CD in the drive.

See Also

Reference