Copyright © 2005-2015 MultiMedia Soft

GetCdTrackDurationMs method

Previous pageReturn to chapter overviewNext page

Remarks

 

Retrieves the duration, expressed in milliseconds, of the given CD track into the CD drive.

 

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

 

The total number of available audio tracks on the given CD can be obtained using the GetCdNumTracks method.

 

 

Syntax

 

[Visual Basic]

Public Function GetCdTrackDurationMs (

nDriveIndex as Int16,

nTrackIndex as Int16

) as Int32


 

[C#]

public Int32 GetCdTrackDurationMs (

Int16 nDriveIndex,

Int16 nTrackIndex

);


 

[C++]

public: Int32 GetCdTrackDurationMs (

Int16 nDriveIndex,

Int16 nTrackIndex

);


 

 

Parameter

Description

 

 

nDriveIndex

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

nTrackIndex

Number representing the one-based index of the CD audio track

 

 

Return value

 

Value

Meaning

 

 

Negative value

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

Value > 0

The audio track duration expressed in milliseconds