TCDPlayer Methods


procedure CloseTray;

Closes CD-ROM drive's tray.

See also:Eject


procedure Eject;

Ejects CD-ROM drive's tray.

See also:CloseTray


procedure Pause;

Pauses the drive if it is playing.

See also: Resume


procedure Play(Track : Integer); overload;

procedure Play(Track, Index : Integer); overload;

procedure Play(PlayFrom, PlayTo : TCDPosition); overload;

Start playing CD in the drive from a cpecified postition. The first method tells the system to play a single track whose number is specified in the Track property. The second method allows to specify a track and a track index to be played. The third method allows to specify two positions: the first is the osition to begin playing from, the second is the position where playback should stop. The positions are specified with TCDPosition structure.

There is a special constant called EndOfDisc of type TCDPosition in SPK_CD_ROM unit. This constant specifies the end of the last track on the disc. You can use this constant to tell the component to play CD from the current position to the end of disc:

CDPlayer1.Play(CurPos, EndOfDisc);


procedure Resume;

Resumes playing paused CD.

See also: Pause


procedure Stop;

Stops playing CD.


TCDPlayer ACS Classes Home


Copyright © 2002, 2003 Andrei Borovsky. All rights reserved.