Copyright © 2001-2019 MultiMedia Soft

LoadTrackFromCd method

Previous pageReturn to chapter overviewNext page

Remarks

 

Loads the given CD track into the given player.

 

CD tracks can be loaded with the LoadSound method also.

 

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.

 

Due to the nature of CD drives, the loading session of a full CD track can be a lengthy operation so, in order to avoid blocking the user interface, the CD track loading session is performed inside a dedicated thread: the container application can be informed about the advancement of the CD track loading session through the following events: CdReadTrackStart, CdReadTrackPercentage and CdReadTrackStop.

 

 

Syntax

 

[Visual Basic]

control.LoadTrackFromCd (

nPlayer as Integer,

nDrive as Integer,

nTrack as Integer

) as enumErrorCodes


 

[C++]

short control.LoadTrackFromCd (

short nPlayer,

short nDrive,

short nTrack

);


 

 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

nDrive

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

nTrack

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)

enumErrorCodes.NOERROR (0)

The call was successful.