rudl_cdrom

Back to index

# Index

CDROM
Class Methods
`CDROM.new( number )`
`CDROM.destroy`
`CDROM.count`
`CDROM#eject`
`CDROM#pause`
`CDROM#play( track_nr )`
`CDROM#resume`
`CDROM#stop`
`CDROM#paused?`
`CDROM#empty?`
`CDROM#busy?`
`CDROM#current`
`CDROM#number`
`CDROM#name`
`CDROM#num_tracks`
`CDROM#audiotrack?( track_nr )`
`CDROM#track_length( track_nr )`
`CDROM#track_start( track_nr )`

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

`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