sdljava.cdrom
public class SDLCdrom extends Object
Version: $Id: SDLCdrom.java,v 1.5 2005/01/19 03:09:11 ivan_ganza Exp $
| Field Summary | |
|---|---|
| int | driveIndex |
| SDL_CD | swigCdrom |
| Constructor Summary | |
|---|---|
| SDLCdrom(SDL_CD swigCdrom, int driveIndex) | |
| Method Summary | |
|---|---|
| static void | cdClose(SDLCdrom cdrom)
Closes a cdrom
|
| void | cdClose()
Close the cdrom
|
| static void | cdEject(SDLCdrom cdrom)
Ejects a CDROM
Ejects the given cdrom. |
| void | cdEject()
Ejects a CDROM
Ejects the cdrom. |
| static String | cdName(int drive)
Returns a human-readable, system-dependent identifier for the CD-ROM.
|
| static SDLCdrom | cdOpen(int drive)
Describe cdOpen method here.
|
| static void | cdPause(SDLCdrom cdrom)
Pauses a CDROM
Pauses play on the given cdrom. |
| void | cdPause()
Pauses a CDROM
Pauses play |
| static void | cdPlay(SDLCdrom cdrom, int start, int length)
Play a CD
Plays the given cdrom, starting a frame start for length frames. |
| void | cdPlay(int start, int length)
Play a CD
Plays starting a frame start for length frames. |
| static void | cdPlayTracks(SDLCdrom cdrom, int start_track, int start_frame, int ntracks, int nframes)
Play the given CD track(s)
SDL_CDPlayTracks plays the given CD starting at track start_track, for ntracks tracks. |
| void | cdPlayTracks(int start_track, int start_frame, int ntracks, int nframes)
Play the given CD track(s)
SDL_CDPlayTracks plays the given CD starting at track start_track, for ntracks tracks. |
| static void | cdResume(SDLCdrom cdrom)
Resumes a CDROM
Resumes play on the given cdrom. |
| void | cdResume()
Resumes a CDROM
Resumes play |
| static CDstatus | cdStatus(SDLCdrom cdrom)
Returns the current status of the given drive.
|
| CDstatus | cdStatus()
Returns the current status of this drive.
|
| static void | cdStop(SDLCdrom cdrom)
Stops a CDROM
Stops play on the given cdrom. |
| void | cdStop()
Stops a CDROM
Stops play |
| protected void | finalize() |
| int | getCurrentFrame()
Get the current frame offset within the track
|
| FrameInfo | getCurrentFrameInfo() |
| int | getCurrentTrack()
Get the current track
|
| int | getDriveIndex() |
| int | getId()
Get the private drive identifier
|
| int | getNumTracks()
Get the number of tracks on the CD
|
| SDL_CD | getSwigCdrom() |
| List | getTracks()
Get the list of tracks
|
| static int | numDrives()
Returns the number of CD-ROM drives on the system.
|
Parameters: cdrom a SDLCdrom value
Ejects the given cdrom.
Parameters: cdrom a SDLCdrom value
Throws: SDLException if an error occurs
Ejects the cdrom.
Parameters: cdrom a SDLCdrom value
Throws: SDLException if an error occurs
Parameters: drive drive is the index of the drive
Returns: a human-readable, system-dependent identifier for the CD-ROM
cdOpen method here.
Opens a CD-ROM drive for access. It returns a SDL_CD structure on success, or NULL if the drive was invalid or busy. This newly opened CD-ROM becomes the default CD used when other CD functions are passed a NULL CD-ROM handle.
Drives are numbered starting with 0. Drive 0 is the system default CD-ROM.
Parameters: drive an int value
Returns: a SDLCdrom value
Throws: SDLException if an error occurs
Pauses play on the given cdrom.
Parameters: cdrom a SDLCdrom value
Throws: SDLException if an error occurs
Pauses play
Parameters: cdrom a SDLCdrom value
Throws: SDLException if an error occurs
Plays the given cdrom, starting a frame start for length frames.
Parameters: cdrom a SDLCdrom value start an int value length an int value
Throws: SDLException if an error occurs
Plays starting a frame start for length frames.
Parameters: start an int value length an int value
Throws: SDLException if an error occurs
SDL_CDPlayTracks plays the given CD starting at track start_track, for ntracks tracks.
start_frame is the frame offset, from the beginning of the start_track, at which to start. nframes is the frame offset, from the beginning of the last track (start_track+ntracks), at which to end playing.
SDL_CDPlayTracks should only be called after calling SDL_CDStatus to get track information about the CD.
Parameters: cdrom a SDLCdrom value start_track an int value start_frame an int value ntrakcs an int value nframes an int value
Throws: SDLException if an error occurs
SDL_CDPlayTracks plays the given CD starting at track start_track, for ntracks tracks.
start_frame is the frame offset, from the beginning of the start_track, at which to start. nframes is the frame offset, from the beginning of the last track (start_track+ntracks), at which to end playing.
SDL_CDPlayTracks should only be called after calling SDL_CDStatus to get track information about the CD.
Parameters: cdrom a SDLCdrom value start_track an int value start_frame an int value ntrakcs an int value nframes an int value
Throws: SDLException if an error occurs
Resumes play on the given cdrom.
Parameters: cdrom a SDLCdrom value
Throws: SDLException if an error occurs
Resumes play
Parameters: cdrom a SDLCdrom value
Throws: SDLException if an error occurs
If the drive has a CD in it, the table of contents of the CD and current play position of the CD will be stored in the cdrom object.
Parameters: cdrom a SDLCdrom value
Returns: a CDstatus value
If the drive has a CD in it, the table of contents of the CD and current play position of the CD will be stored in the cdrom object.
Parameters: cdrom a SDLCdrom value
Returns: a CDstatus value
Stops play on the given cdrom.
Parameters: cdrom a SDLCdrom value
Throws: SDLException if an error occurs
Stops play
Parameters: cdrom a SDLCdrom value
Throws: SDLException if an error occurs
Returns: the current frame offset within the track
Returns: the current track
Returns: the private drive identifier
Returns: the number of tracks on the CD
Returns: the list of tracks
Returns: Returns the number of CD-ROM drives on the system.