ACS_CDROM

Delphi interface to read audio data from a CD-ROM.

Summary
ACS_CDROMDelphi interface to read audio data from a CD-ROM.
Enumerations
TCDStatusThe status of the CD-ROM drive.
TTrackTypeThe type of the current track.
TCDInfoGeneral information about the disc in the drive.
TCDMSFThe standard measure of time duration (and byte length) when dealing with CD-DA.
TCDTrackInfoCarries information about a CD_DA track.
TCDPositionRepresents the current reader position on disc.
Constants
EndOfDiscThis is a constant representing the logical position beyond the end of disc (very much like EOF for files).
TCDInThis component reads data from CD-DA directly.
Functions
EjectEjects CD-ROM drive’s tray.
CloseTrayCloses CD-ROM drive’s tray.
Properties
DiscInfoRead this property to get a TCDInfo about a disc in the drive.
StatusRead Status to get a TCDStatus about the drive.
TracksReturns information about a track specified by its number.
TracksCountThe number of tracks on the disc.
DriveNameThe name of the current CD-ROM drive as returned by the drive unit.
DrivesCountThe total number of the CD-ROM drives detected in the system.
StartPosSet this property to specify the starting position for data transfer in a TCDPosition format.
EndPosSet this property to specify the end position for data transfer in a TCDPosition format.
CurrentDriveUse this property to set or get the number of the current CD-ROM drive.
StartTrackSet StartTrack to specify the starting position for data transfer at the beginning of the track identified by number.
EndTrackSet EndTrack to specify the ending position for data transfer at the end of the track identified by number.

Enumerations

TCDStatus

The status of the CD-ROM drive.

cdsNotReadyDrive is not ready.
cdsReadyDrive is ready to play.
cdsPlayingDrive is already playing a disc.
cdsPausedDrive is paused.

TTrackType

The type of the current track.

ttAudioAudio track
ttDataData track

TCDInfo

General information about the disc in the drive.

cdiNoDiscNo disc in the drive.
cdiDiscAudioAn audio disc.
cdiDiscDataA data disc.
cdiDiscMixedA mixed audio-data disc.
cdiUnknownA disc of unknown format.

TCDMSF

The standard measure of time duration (and byte length) when dealing with CD-DA.

Properties

Minutethe number of full minutes in a track.
Secondthe number of full seconds in a track.
Framethe number of frames.  One frame constitutes 1/75 of a second and 2352 bytes.

TCDTrackInfo

Carries information about a CD_DA track.

Properties

TrackLength : TCDMSFlength of the track in MSF format.
TrackType : TTrackTypetype of the track (possible values are ttAudio - for audio tracks and ttData for data tracks).

TCDPosition

Represents the current reader position on disc.

Properties

Trackthe track number (valid values vary from 1 to 99).
MSFthe position within a track in a MSF format.
Summary
Constants
EndOfDiscThis is a constant representing the logical position beyond the end of disc (very much like EOF for files).

Constants

EndOfDisc

This is a constant representing the logical position beyond the end of disc (very much like EOF for files).

TCDIn

This component reads data from CD-DA directly.  It is suitable for creating CD-rippers.  Descends from TAuInput.  Requires CDRip.dll.

Summary
Functions
EjectEjects CD-ROM drive’s tray.
CloseTrayCloses CD-ROM drive’s tray.
Properties
DiscInfoRead this property to get a TCDInfo about a disc in the drive.
StatusRead Status to get a TCDStatus about the drive.
TracksReturns information about a track specified by its number.
TracksCountThe number of tracks on the disc.
DriveNameThe name of the current CD-ROM drive as returned by the drive unit.
DrivesCountThe total number of the CD-ROM drives detected in the system.
StartPosSet this property to specify the starting position for data transfer in a TCDPosition format.
EndPosSet this property to specify the end position for data transfer in a TCDPosition format.
CurrentDriveUse this property to set or get the number of the current CD-ROM drive.
StartTrackSet StartTrack to specify the starting position for data transfer at the beginning of the track identified by number.
EndTrackSet EndTrack to specify the ending position for data transfer at the end of the track identified by number.

Functions

Eject

procedure Eject

Ejects CD-ROM drive’s tray.

CloseTray

procedure CloseTray

Closes CD-ROM drive’s tray.

Properties

DiscInfo

Read this property to get a TCDInfo about a disc in the drive.

Status

Read Status to get a TCDStatus about the drive.

Tracks

Returns information about a track specified by its number.  The possible values of indexes range from 1 to TracksCount.  The information about a track is returned as TCDTrackInfo record.

TracksCount

The number of tracks on the disc.

DriveName

The name of the current CD-ROM drive as returned by the drive unit.

DrivesCount

The total number of the CD-ROM drives detected in the system.

StartPos

Set this property to specify the starting position for data transfer in a TCDPosition format.

EndPos

Set this property to specify the end position for data transfer in a TCDPosition format.  There is a special constant <EndOfDisc> of type TCDPosition If you want to record from a certain point to the end of disc, set this property value to <EndOfDisc>.

CurrentDrive

Use this property to set or get the number of the current CD-ROM drive.  Possible values range from 0 to DrivesCount - 1.

StartTrack

Set StartTrack to specify the starting position for data transfer at the beginning of the track identified by number.  The tracks are numbered starting from 1.

EndTrack

Set EndTrack to specify the ending position for data transfer at the end of the track identified by number.  If you want to get data from a single track, the end track number should be the same as the start track number.

procedure Eject
Ejects CD-ROM drive’s tray.
procedure CloseTray
Closes CD-ROM drive’s tray.
General information about the disc in the drive.
The status of the CD-ROM drive.
Represents the current reader position on disc.
The ancestor class for all input components.
The number of tracks on the disc.
Carries information about a CD_DA track.
The total number of the CD-ROM drives detected in the system.
Close