Lines Matching full:cd

2 :mod:`cd` --- CD-ROM access on SGI systems
5 .. module:: cd
7 :synopsis: Interface to the CD-ROM on Silicon Graphics systems.
12 The :mod:`cd` module has been removed in Python 3.
15 This module provides an interface to the Silicon Graphics CD library. It is
18 The way the library works is as follows. A program opens the CD-ROM device with
19 :func:`.open` and creates a parser to parse the data from the CD with
21 data from the CD, but also to get status information for the CD-ROM device, and
22 to get information about the CD, such as the table of contents. Data from the
23 CD is passed to the parser, which parses the frames, and calls any callback
26 An audio CD is divided into :dfn:`tracks` or :dfn:`programs` (the terms are used
27 interchangeably). Tracks can be subdivided into :dfn:`indices`. An audio CD
29 CD. Index 0 is usually the pause before the start of a track. The start of the
32 Positions on a CD can be represented in two ways. Either a frame number or a
35 CD, and to the beginning of the track.
37 Module :mod:`cd` defines the following functions and constants:
49 time code into the corresponding CD frame number.
54 Open the CD-ROM device. The return value is an opaque player object; methods of
57 the hardware inventory is consulted to locate a CD-ROM drive. The *mode*, if
83 The drive is ready for operation loaded with an audio CD.
88 The drive does not have a CD loaded.
93 The drive is loaded with a CD-ROM. Subsequent play or read operations will
104 The drive is in CD player mode playing an audio CD through its audio jacks.
109 The drive is in CD layer mode with play paused.
114 The equivalent of :const:`PAUSED` on older (non 3301) model Toshiba CD-ROM
128 set by the :meth:`addcallback` method of CD parser objects (see below).
139 .. method:: CD player.allowremoval()
141 Unlocks the eject button on the CD-ROM drive permitting the user to eject the
145 .. method:: CD player.bestreadsize()
149 flow of data from the CD-ROM drive.
152 .. method:: CD player.close()
158 .. method:: CD player.eject()
160 Ejects the caddy from the CD-ROM drive.
163 .. method:: CD player.getstatus()
165 Returns information pertaining to the current state of the CD-ROM drive. The
176 .. method:: CD player.gettrackinfo(track)
183 .. method:: CD player.msftoblock(min, sec, frame)
186 code into the corresponding logical block number for the given CD-ROM drive.
189 required by certain CD-ROM drives.
192 .. method:: CD player.play(start, play)
194 Starts playback of an audio CD in the CD-ROM drive at the specified track. The
195 audio output appears on the CD-ROM drive's headphone and audio jacks (if
197 at which to start playing the CD; if *play* is 0, the CD will be set to an
202 .. method:: CD player.playabs(minutes, seconds, frames, play)
208 .. method:: CD player.playtrack(start, play)
213 .. method:: CD player.playtrackabs(track, minutes, seconds, frames, play)
219 .. method:: CD player.preventremoval()
221 Locks the eject button on the CD-ROM drive thus preventing the user from
225 .. method:: CD player.readda(num_frames)
227 Reads the specified number of frames from an audio CD mounted in the CD-ROM
232 .. method:: CD player.seek(minutes, seconds, frames)
235 audio data from a CD-ROM. The pointer is set to an absolute time code location
240 .. method:: CD player.seekblock(block)
243 audio data from a CD-ROM. The pointer is set to the specified logical block
248 .. method:: CD player.seektrack(track)
251 audio data from a CD-ROM. The pointer is set to the specified track. The
255 .. method:: CD player.stop()
260 .. method:: CD player.togglepause()
262 Pauses the CD if it is playing, and makes it play if it is paused.
273 .. method:: CD parser.addcallback(type, func, arg)
277 defined at the :mod:`cd` module level (see above). The callback is called as
300 | | number of the CD. |
309 | ``control`` | Integer giving the control bits from the CD |
314 .. method:: CD parser.deleteparser()
321 .. method:: CD parser.parseframe(frame)
323 Parses one or more frames of digital audio data from a CD such as returned by
331 .. method:: CD parser.removecallback(type)
336 .. method:: CD parser.resetparser()