Back to index

Index

CDROM

Class Methods

 new  destroy  count

Instance methods

 eject  pause  play  resume  stop  paused?  empty?  busy?  current  number  name  num_tracks  audiotrack?  track_length  track_start

CDROM

A class for playing audio CD's.

Class Methods

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.destroy

Uninitializes the CDROM subsystem, which is normally not necessary.

CDROM.count

Returns the number of CDROMs installed.

Instance methods

CDROM#eject
CDROM#pause
CDROM#play( track_nr )
CDROM#resume
CDROM#stop
CDROM#paused?
CDROM#empty?
CDROM#busy?

These are the you-know-what-they-do methods.

CDROM#current
CDROM#number

Returns the unit number that was specified in CDROM.new.

CDROM#name

Returns a string describing the CDROM.

CDROM#num_tracks

Returns 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