cdrom_lnx.
This is a thin layer around the basic Linux IOCTL calls to control
an audio CD player. Up to now, it has only been tested
under Linux 2.0.36 with an IDE-CD player. According to the
Linux documentation, it should however work with other CD types, too.
__init__(devicename)
pause(), resume(), start(), stop(), eject(), closeTray(), reset()
readToc()
cdrom_tocentry instances).
The entries have an additional member duration which
represents the duration of the track in frames (i.e. 1/75 s).
playFRAMES(startframes,no)
playTI(starttrack,startindex,endtrack,endindex)
playMSF(startminute,startsecond,startframe,
endminute,endsecond,endframe)
setVolume(channel0,channel1,channel2,channel3)
setVolume can be called with a single cdrom_volctrl instance argument, instead.
getVolume()
cdrom_volctrl instance, an object with
members channel0,channel1,channel2,channel3.
getSubchnl()
cdrom_subchnl instance
describing the current (subchannel) state.
isDataTrack()
getLBA()
getMSF()
cdrom_msf0 instance,
an object with members minute, second and
frame.
cdrom_tocentry instances returned by CDRom.getToc
have an additional member duration that specifies the
track's duration in frames.
cdsc_audiostatus| 0x00 | audio status not supported |
| 0x11 | audio play in progress |
| 0x12 | audio play paused |
| 0x13 | audio play completed |
| 0x14 | audio play stopped due to error |
| 0x15 | no current audio state to return |
cdsc_trkcdsc_indcdsc_absaddrcdsc_reladdrgetAddr(rel=0)
returns the current (absolute or relative) address.
cdrom_msf0 instance.
msf2lba may also be called with a single cdrom_msf0
argument.