eject pause play resume stop paused? empty? busy? current number name num_tracks audiotrack? track_length track_start
A class for playing audio CD's.
CDROM.new( number )Creates a new CDROM access object for unit number. There can only be one CDROM object per unit. Numbering starts at 0.
CDROM.destroyUninitializes the CDROM subsystem, which is normally not necessary.
CDROM.countReturns the number of CDROMs installed.
CDROM#ejectCDROM#pauseCDROM#play( track_nr )CDROM#resumeCDROM#stopCDROM#paused?CDROM#empty?CDROM#busy?These are the you-know-what-they-do methods.
CDROM#currentCDROM#numberReturns the unit number that was specified in CDROM.new.
CDROM#nameReturns a string describing the CDROM.
CDROM#num_tracksReturns the number of tracks on the CD.
CDROM#audiotrack?( track_nr )Returns whether the specified track is an audiotrack.
CDROM#track_length( track_nr )Returns the length of the track.
Returns 0.0 when the track is not an audio track.
CDROM#track_start( track_nr )Returns the starting time of the track.
Back to index