Next: OpenGL, Previous: Joystick, Up: The (sdl *) Modules [Contents][Index]
The external representation of a CDROM Drive object is:
#<SDL-CD [status]>
where status is one of ‘TRAY EMPTY’, ‘STOPPED’, ‘PLAYING’, ‘PAUSED’, ‘DRIVE ERROR’, or ‘???’. (Normally, the last one should never appear.)
Return #t
iff obj is a CDROM drive object.
Return the number of CDROM drives.
Return a human-readable, system-dependent
identifier (a string) for the CDROM, or #f
.
Optional arg drive is a number specifying which drive.
Open the CDROM drive for access and return its handle.
If the drive is unavailable, return #f
.
Optional arg drive is a number specifying which drive.
Return the current status of the drive cdrom as a symbol (see cdrom-state enums).
Return #t
iff there is a CD in drive cdrom.
Return the number of tracks on the CD in drive cdrom.
Return the current track on the CD in drive cdrom.
Return the current frame of the CD in drive cdrom.
For CD in drive cdrom, return four values describing track
n (zero if unspecified): id
, type
, length
and offset
, all integers except for type
, which is
a symbol, either audio
or data
.
Play the given CD tracks in drive cdrom.
Play the CD starting at start-track and
start-frame for ntracks tracks and nframes
frames. If both ntrack and nframe are 0, play
until the end of the CD. This procedure will skip data
tracks, and should only be called after calling
cd-status
to get track information about the CD.
Return #t
if successful.
Play CD in drive cdrom from start frame for
length frames. Return #t
if successful.
Pause the CD in drive cdrom. Return #t
if successful.
Resume (unpause) the CD in drive cdrom.
Return #t
if successful.
Stop the CD in drive cdrom. Return #t
if successful.
Eject the CD from drive cdrom. Return #t
if successful.
Close the drive cdrom.
Return frames (an integer) computed fr m, second s and frame f. s and f are optional.
Break down frames (an integer) and return three values:
minute
, second
and frames
(all integers).
Next: OpenGL, Previous: Joystick, Up: The (sdl *) Modules [Contents][Index]