Copyright © 2001-2019 MultiMedia Soft

GetCdTrackPathname method

Previous pageReturn to chapter overviewNext page

Remarks

 

Given an audio track number, retrieves the relative file pathname.

 

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

 

 

Syntax

 

[Visual Basic]

control.GetCdTrackPathname (

nCdDriveIndex as Integer,

nTrackIndex as Integer

) as String


 

[C++]

LPCTSTR control..GetCdTrackPathname (

short nCdDriveIndex,

short 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

 

 

Empty string

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

Valid string

The string containing the CD track file pathname.