Copyright © 2005-2018 MultiMedia Soft

GetCdNumTracks method

Previous pageReturn to chapter overviewNext page

Remarks

 

Retrieves the number of audio tracks inside the given CD.

 

The total number of available CD drives can be obtained using the GetCdDrivesCount method.

 

 

Syntax

 

[Visual Basic]

Public Function GetCdNumTracks (

nDriveIndex as Int16

) as Int16


 

[C#]

public Int16 GetCdNumTracks (

Int16 nDriveIndex

);


 

[C++]

public: Int16 GetCdNumTracks (

Int16 nDriveIndex

);


 

 

[Visual Basic]

control.GetCdNumtracks (nDrive as integer) as integer

 

[C++]

short control.GetCdNumtracks (short nDrive);

 

Parameter

Description

 

 

nDriveIndex

Number representing the zero-based index of the involved CD drive.

Installed CD drives can be enumerated using the GetCdDrivesCount method and their friendly description can be retrieved through the GetCdDriveDesc method.

 

If the number of tracks to report has been obtained through a search through the Amazon catalogue, by calling the CdRequestAlbumInfo method, set this parameter to -1.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

Value > 0

The number of available audio tracks