2
<title>pygame.cdrom</title>
3
<body bgcolor=#aaeebb text=#000000 link=#331111 vlink=#331111>
6
<table cellspacing=3 width=100%><tr><td bgcolor=#00000>
7
<table width=100%><tr><td bgcolor=c2fc20 align=center>
8
<a href=http://www.pygame.org>
9
<img src=../pygame_tiny.gif border=0 width=200 height=60></a><br>
10
<b>pygame documentation</b>
11
</td><td bgcolor=6aee28 align=center valign=top width=100%>
14
<a href=http://www.pygame.org>Home</a> ||
15
<a href=../index.html>Help Contents</a> ||
18
|| <a href=pygame.html>pygame</a> ||
19
<a href=pygame_cdrom.html>cdrom</a> ||
20
<a href=pygame_constants.html>constants</a> ||
21
<a href=pygame_display.html>display</a> ||
22
<a href=pygame_draw.html>draw</a> ||
23
<a href=pygame_event.html>event</a> ||<br>
24
|| <a href=pygame_font.html>font</a> ||
25
<a href=pygame_image.html>image</a> ||
26
<a href=pygame_joystick.html>joystick</a> ||
27
<a href=pygame_key.html>key</a> ||
28
<a href=pygame_mixer.html>mixer</a> ||
29
<a href=pygame_mixer_music.html>mixer_music</a> ||<br>
30
|| <a href=pygame_mouse.html>mouse</a> ||
31
<a href=pygame_movie.html>movie</a> ||
32
<a href=pygame_surfarray.html>surfarray</a> ||
33
<a href=pygame_time.html>time</a> ||
34
<a href=pygame_transform.html>transform</a> ||<br>
35
<br>|| <a href=CD.html>CD</a> ||
36
<a href=Channel.html>Channel</a> ||
37
<a href=Clock.html>Clock</a> ||
38
<a href=Font.html>Font</a> ||
39
<a href=Joystick.html>Joystick</a> ||
40
<a href=Movie.html>Movie</a> ||<br>
41
|| <a href=Rect.html>Rect</a> ||
42
<a href=Sound.html>Sound</a> ||
43
<a href=Surface.html>Surface</a> ||<br>
44
<br>|| <a href=pygame_cursors.html>cursors</a> ||
45
<a href=pygame_sprite.html>sprite</a> ||
46
<a href=pygame_version.html>version</a> ||<br>
49
</td></tr></table></td></tr></table>
51
<h2 align=center>pygame.cdrom</h2>
52
The cdrom module provides a few functions to initialize
53
the CDROM subsystem and to manage the CD objects. The CD
54
objects are created with the <a href=#CD>pygame.cdrom.CD()</a> function.
55
This function needs a cdrom device number to work on. All
56
cdrom drives on the system are enumerated for use as a CD
57
object. To access most of the CD functions, you'll need to
58
<a href=pygame.html#init>init()</a> the CD. (note that the cdrom module will already
59
be initialized). When multiple CD objects are created for the
60
same CDROM device, the state and values for those CD objects
63
You can call the <a href=CD.html#get_name>CD.get_name()</a> and <a href=CD.html#get_id>CD.get_id()</a> functions
64
without initializing the CD object.
66
Be sure to understand there is a difference between the cdrom module
72
<tr><td><a href=#CD>CD</a></td><td> -
73
create new CD object</td></tr>
76
<tr><td><a href=#get_count>get_count</a></td><td> -
77
query number of cdroms on system</td></tr>
80
<tr><td><a href=#get_init>get_init</a></td><td> -
81
query init of cdrom module</td></tr>
84
<tr><td><a href=#init>init</a></td><td> -
85
initialize the cdrom subsystem</td></tr>
88
<tr><td><a href=#quit>quit</a></td><td> -
89
uninitialize the cdrom subsystem</td></tr>
96
<a name=CD><font size=+2><b>CD
97
</b></font><br><font size=+1><tt>
98
pygame.cdrom.CD(id) -> CD
100
Creates a new CD object for the given CDROM id. The given id
101
must be less than the value from <a href=#get_count>pygame.cdrom.get_count()</a>.
104
<a name=get_count><font size=+2><b>get_count
105
</b></font><br><font size=+1><tt>
106
pygame.cdrom.get_count() -> int
108
Returns the number of CDROM drives available on
112
<a name=get_init><font size=+2><b>get_init
113
</b></font><br><font size=+1><tt>
114
pygame.cdrom.get_init() -> bool
116
Returns true of the cdrom module is initialized
119
<a name=init><font size=+2><b>init
120
</b></font><br><font size=+1><tt>
121
pygame.cdrom.init() -> None
123
Initialize the CDROM module manually
126
<a name=quit><font size=+2><b>quit
127
</b></font><br><font size=+1><tt>
128
pygame.cdrom.quit() -> None
130
Uninitialize the CDROM module manually