Source

pygame / docs / ref / pygame_cdrom.html

Full commit
<html>
<title>pygame.cdrom</title>
<body bgcolor=#dddddd text=#333377 link=#7777bb vlink=#7777bb>

<table border=0 width=100% cellpadding=0 cellspacing=0 bgcolor=#f5f5f5><tr valign=top>
<td rowspan=2><table border=0 cellpadding=5 cellspacing=0 bgcolor=#333377>
<tr height=86 align=left><td valign=middle><font color=#ffffff size=+5>
	<a href=../index.html><font size=+5 color=#ffffff><i><b>
      pygame</b></i></font></a>&nbsp;&nbsp;</td>
<td valign=middle><tt><font color=#dddddd><br>
	pygame<br>documentation</font>
</td></tr></table></td><td width=100% align=center valign=middle>

	||&nbsp;
	<a href=http://pygame.seul.org>Home</a> &nbsp;||&nbsp;
	<a href=../index.html>Help Contents</a> &nbsp;||
	<br>&nbsp;<br>

|| <a href=CD.html>CD</a> || 
<a href=Channel.html>Channel</a> || 
<a href=Font.html>Font</a> || 
<a href=Joystick.html>Joystick</a> || 
<a href=Rect.html>Rect</a> || 
<a href=Sound.html>Sound</a> || 
<a href=Surface.html>Surface</a> ||<br>
|| <a href=pygame.html>pygame</a> || 
<a href=pygame_UserRect.html>UserRect</a> || 
<a href=pygame_cdrom.html>cdrom</a> || 
<a href=pygame_constants.html>constants</a> || 
<a href=pygame_cursors.html>cursors</a> || 
<a href=pygame_display.html>display</a> || 
<a href=pygame_event.html>event</a> ||<br>
|| <a href=pygame_font.html>font</a> || 
<a href=pygame_image.html>image</a> || 
<a href=pygame_joystick.html>joystick</a> || 
<a href=pygame_key.html>key</a> || 
<a href=pygame_mixer.html>mixer</a> || 
<a href=pygame_mixer_music.html>mixer_music</a> || 
<a href=pygame_mouse.html>mouse</a> ||<br>
|| <a href=pygame_surfarray.html>surfarray</a> || 
<a href=pygame_time.html>time</a> || 
<a href=pygame_version.html>version</a> ||<br>


</td></tr></table>
<br>
<h2 align=center>pygame.cdrom</h2>
The cdrom module provides a few functions to initialize
the CDROM subsystem and to manage the CD objects. The CD
objects are created with the pygame.cdrom.CD() function.
This function needs a cdrom device number to work on. All
cdrom drives on the system are enumerated for use as a CD
object. To access most of the CD functions, you'll need to
Init() the CD. (note that the cdrom module will already
be initialized). When multiple CD objects are created for the
same CDROM device, the state and values for those CD objects
will be shared.
<br>&nbsp;<br>
You can call the CD.get_name() and CD.get_id() functions
without initializing the CD object.
<br>&nbsp;<br>
Be sure to understand there is a difference between the cdrom module
and the CD objects.

<hr>

<table>
<tr><td><a href=#CD>CD</a></td><td> -
create new CD object</td></tr>


<tr><td><a href=#get_count>get_count</a></td><td> -
query number of cdroms on system</td></tr>


<tr><td><a href=#get_init>get_init</a></td><td> -
query init of cdrom module</td></tr>


<tr><td><a href=#init>init</a></td><td> -
initialize the cdrom subsystem</td></tr>


<tr><td><a href=#quit>quit</a></td><td> -
uninitialize the cdrom subsystem</td></tr>


</table>

<hr>

<a name=CD><font size=+2><b>CD
</b></font><br><font size=+1><tt>
pygame.cdrom.CD(id) -> CD
</tt></font><ul>
Creates a new CD object for the given CDROM id. The given id
must be less than the value from <a href=#get_count>pygame.cdrom.get_count()</a>.
</ul><br>&nbsp;<br>

<a name=get_count><font size=+2><b>get_count
</b></font><br><font size=+1><tt>
pygame.cdrom.get_count() -> int
</tt></font><ul>
Returns the number of CDROM drives available on
the system.
</ul><br>&nbsp;<br>

<a name=get_init><font size=+2><b>get_init
</b></font><br><font size=+1><tt>
pygame.cdrom.get_init() -> bool
</tt></font><ul>
Returns true of the cdrom module is initialized
</ul><br>&nbsp;<br>

<a name=init><font size=+2><b>init
</b></font><br><font size=+1><tt>
pygame.cdrom.init() -> None
</tt></font><ul>
Initialize the CDROM module manually
</ul><br>&nbsp;<br>

<a name=quit><font size=+2><b>quit
</b></font><br><font size=+1><tt>
pygame.cdrom.quit() -> None
</tt></font><ul>
Uninitialize the CDROM module manually
</ul><br>&nbsp;<br>


<hr>

</body></html>