Remarks
Retrieves the duration, expressed in seconds, of the given CD track into the CD drive. The track's duration in milliseconds can be retrieved using the GetCdTrackDurationMs method.
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 GetCdTrackDuration (
nDriveIndex as Int16,
nTrackIndex as Int16
) as Int32
|
|
[C#]
public Int32 GetCdTrackDuration (
Int16 nDriveIndex,
Int16 nTrackIndex
);
|
|
[C++]
public: Int32 GetCdTrackDuration (
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 seconds
|
|