BASS_CD_GetTracks

Retrieves the number of tracks on the CD in a drive.

DWORD BASS_CD_GetTracks(
    DWORD drive
);

Parameters

driveThe drive... 0 = the first drive.

Return value

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.

Error codes

BASS_ERROR_DEVICEdrive is invalid.
BASS_ERROR_NOCDThere is no CD in the drive.

See also

BASS_CD_GetTOC, BASS_CD_GetTrackLength, BASS_CD_StreamCreate