Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

AudioCD Class Reference

Controls audio cd playing. Supports linux and windows. More...

#include <AudioCD.h>

List of all members.

Public Methods

virtual void Stop () = 0
 Stop the cd if it is playing.

virtual void Pause () = 0
 Pause the cd.

virtual void Resume () = 0
 Unpause the cd.

virtual void Eject () = 0
 Eject the cd tray.

virtual void Retract () = 0
 Retract the cd tray.

virtual void Play () = 0
 Play the entire cd.

virtual void Play (int minute0, int second0, int minute1, int second1) = 0
 Play from minute0:second0 to minute1:second1 .

virtual void Play (int track0, int minute0, int second0, int track1, int minute1, int second1) = 0
virtual bool ResumePlayToEnd () = 0
virtual void Play (int track) = 0
 Play a given track on the cd.

virtual void Play (int start, int end) = 0
 Play a range of tracks on the cd.
Parameters:
start   The first track to play.
end   The last track to play.


virtual void Next () = 0
 Stop playing the current track and start playing the next one.

virtual void Previous () = 0
 Stop playing the current track and start playing the previous one.

virtual bool IsPlaying () = 0
virtual bool SeekTo (int minutes, int seconds, int track = -1) = 0
virtual bool GetTotalTime (int& minutes, int& seconds) = 0
virtual bool GetTrackTime (int& minutes, int& seconds, int track = -1) = 0
 if track == -1 we will retrieve the current track.

virtual bool GetTrackPosition (int& minutes, int& seconds, int& track) = 0
 Retrieve the current play position relative to the current track.

virtual bool GetTotalPosition (int& minutes, int& seconds, int& track) = 0
 Retrieve the current play position relative to the total cd.

virtual int GetCurrentTrack () = 0
 
Returns:
The id of the current track.


virtual int GetFirstTrack () = 0
 
Returns:
The id of the first track.


virtual int GetLastTrack () = 0
 
Returns:
The id of the last track.


virtual void GetFirstAndLast (int& first, int& last) = 0
virtual bool MediaPresent () = 0
virtual bool IsAudioTrack (int track) = 0
virtual bool MediaChanged () = 0
 return true if the media has changed since this was last called.

virtual bool GetTMSF (int track, int& minutes, int& seconds, int& frames) = 0
virtual bool GetTMSF (int& minutes, int& seconds, int& frames) = 0
const char* GetVolumeSerialNumber ()
 Retrieve the volume serial number for the cd. This is used by the windows cdplayer as a key to store track information in cdplayer.ini.

const char* GetCDDBDiscID ()
 The number used by cddb to identify the cd.


Static Public Methods

AudioCD* Create ()


Detailed Description

Controls audio cd playing. Supports linux and windows.


The documentation for this class was generated from the following files:
Generated at Mon Nov 27 01:46:37 2000 for LibPenguinPlay by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000