Gambas Documentation - /comp/gb.sdl.sound/cdrom

/comp/gb.sdl.sound/cdrom

# CDRom (gb.sdl.sound)

This class allow you to manage a CDROM drive previouly detected with CDRoms class. If the class is instanciated without any parameter, it will use the default system CDROM drive.

This class is
Creates a new CDRom object.
creatable
.

Properties | Methods
--- | ---

Return the length in seconds of the CD in the drive.
Length
Return TRUE if the the CDROM is paused, otherwise FALSE.
Paused
Return TRUE if the the CDROM is playing, otherwise FALSE.
Playing
Return the position in seconds from the start of the CD while playing.
Position
Return if a CD-ROM is ready.
Ready
Return TRUE if the the CDROM is stopped, otherwise FALSE.
Stopped
Return a virtual array of the CD-Rom tracks.
Tracks
Return or set the CD-ROM volume.
Volume

Eject the tray of the CDROM drive.
Eject
Pauses the CD while playing.
Pause
Play the CD in the CDROM drive.
Play
Resumes playing the CD while paused.
Resume
Stops play the CD.
Stop