pygame / docs / CD.html

<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 width=60%><table border=0 cellpadding=5 cellspacing=0 bgcolor=#333377>
<tr height=86 align=left><td valign=top><font color=#ffffff size=+5>
	<a href=../>
      <img src=mainlogo.gif width=300 height=100 alt="PyGame Logo" border=0></a></td>
<td valign=middle><tt><font color=#dddddd><br>
</td></tr></table></td><td width=100% height=100% align=center valign=middle>

	<a href=../>Home</a> &nbsp;||&nbsp;
	<a href=index.html>Help Contents</a> &nbsp;||

|| <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> ||<br>
|| <a href=Sound.html>Sound</a> || 
<a href=Surface.html>Surface</a> || 
<a href=pygame.html>pygame</a> || 
<a href=pygame_cdrom.html>cdrom</a> || 
<a href=pygame_display.html>display</a> ||<br>
|| <a href=pygame_event.html>event</a> || 
<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> ||<br>
|| <a href=pygame_mixer.html>mixer</a> || 
<a href=pygame_mouse.html>mouse</a> || 
<a href=pygame_music.html>music</a> || 
<a href=pygame_surfarray.html>surfarray</a> || 
<a href=pygame_time.html>time</a> ||<br>

<h2 align=center>CD</h2>
thin wrapper around the SDL CDROM api, likely to


<tr><td><a href=#eject>eject</a></td><td> -
ejects cdrom drive</td></tr>

<tr><td><a href=#get_cur_frame>get_cur_frame</a></td><td> -
query current frame</td></tr>

<tr><td><a href=#get_cur_track>get_cur_track</a></td><td> -
query current track</td></tr>

<tr><td><a href=#get_empty>get_empty</a></td><td> -
query status of drive</td></tr>

<tr><td><a href=#get_status>get_status</a></td><td> -
query drive status</td></tr>

<tr><td><a href=#pause>pause</a></td><td> -
pause playing cdrom</td></tr>

<tr><td><a href=#play>play</a></td><td> -
play music from cdrom</td></tr>

<tr><td><a href=#play_tracks>play_tracks</a></td><td> -
play music from cdrom</td></tr>

<tr><td><a href=#resume>resume</a></td><td> -
resume paused cdrom</td></tr>

<tr><td><a href=#stop>stop</a></td><td> -
stops playing cdrom</td></tr>



<a name=eject><font size=+2><b>eject
</b></font><br><font size=+1><tt>
CD.eject() -> int
Ejects the media from the CDROM drive.

<a name=get_cur_frame><font size=+2><b>get_cur_frame
</b></font><br><font size=+1><tt>
CD.get_cur_frame() -> int
Get the current frame of a playing CD.

<a name=get_cur_track><font size=+2><b>get_cur_track
</b></font><br><font size=+1><tt>
CD.get_cur_track() -> int
Get the current track of a playing CD.

<a name=get_empty><font size=+2><b>get_empty
</b></font><br><font size=+1><tt>
CD.get_empty() -> bool
Returns true when there is no disk in the CD

<a name=get_status><font size=+2><b>get_status
</b></font><br><font size=+1><tt>
CD.get_status() -> int
Get the status of the CDROM drive.

<a name=pause><font size=+2><b>pause
</b></font><br><font size=+1><tt>
CD.pause() -> int
Pauses the playing CD.

<a name=play><font size=+2><b>play
</b></font><br><font size=+1><tt>, nframes) -> int
Start playing from start_frame, for nframes. If
nframes is 0, it will play until the end of the

<a name=play_tracks><font size=+2><b>play_tracks
</b></font><br><font size=+1><tt>
CD.play_tracks(start_track, start_frame, ntracks, nframes) -> int
Start playing from start_track, for ntracks and
nframes. If ntracks and nframes are 0, it will
play until the end of the cdrom

<a name=resume><font size=+2><b>resume
</b></font><br><font size=+1><tt>
CD.resume() -> int
Resumes playback of a paused CD.

<a name=stop><font size=+2><b>stop
</b></font><br><font size=+1><tt>
CD.stop() -> int
Stops the playing CD.