Copyright © 2006 - 2008 MultiMedia Soft 
Return to Table of contents  
 
 
GetCdTrackDuration method 
 
Remarks 
 
Retrieves the duration of the given CD track into the CD drive. 
 
 
Syntax 
 
[Visual Basic] 
Public Function GetCdTrackDuration
nCdDriveIndex as Int16, 
nTrackIndex as Int16 
) as Int32
 
[C#] 
public Int32 GetCdTrackDuration
Int16 nCdDriveIndex, 
Int16 nTrackIndex 
);
 
[C++] 
public: Int32 GetCdTrackDuration
Int16 nCdDriveIndex, 
Int16 nTrackIndex 
);
 
 
Parameter
Description
 
 
nCdDriveIndex
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.
nTrackIndex
Number representing the one-based index of the CD audio track. 
The total number of available audio tracks on the given CD can be obtained using the GetCdNumTracks method.
 
 
Return value 
 
Value
Meaning
 
 
Negative value
An error occurred (see the LastError property for further error details)
> 0
The audio track duration expressed in seconds
 
 
 
 
 
 
 
 
 
 
Copyright © 2006 - 2008 MultiMedia Soft 
Return to Table of contents