audiere::CDDevice Class Reference

#include <audiere.h>

Inheritance diagram for audiere::CDDevice:

Inheritance graph
[legend]
Collaboration diagram for audiere::CDDevice:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual const char * getName ()=0
virtual int getTrackCount ()=0
virtual void play (int track)=0
virtual void stop ()=0
virtual void pause ()=0
virtual void resume ()=0
virtual bool isPlaying ()=0
virtual bool containsCD ()=0
virtual bool isDoorOpen ()=0
virtual void openDoor ()=0
virtual void closeDoor ()=0

Protected Member Functions

virtual ~CDDevice ()

Detailed Description

Represents a device capable of playing CD audio. Internally, this uses the MCI subsystem in windows and libcdaudio on other platforms. MCI subsystem: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_multimedia_command_strings.asp libcdaudio: http://cdcd.undergrid.net/libcdaudio/

Definition at line 905 of file audiere.h.


Constructor & Destructor Documentation

virtual audiere::CDDevice::~CDDevice  )  [inline, protected, virtual]
 

Definition at line 907 of file audiere.h.


Member Function Documentation

virtual void audiere::CDDevice::closeDoor  )  [pure virtual]
 

Closes this device's door.

virtual bool audiere::CDDevice::containsCD  )  [pure virtual]
 

Returns true if the drive contains a cd. This might be slow on some systems, use with care.

virtual const char* audiere::CDDevice::getName  )  [pure virtual]
 

Returns the name of this CD Device, often just the device name it was created with.

virtual int audiere::CDDevice::getTrackCount  )  [pure virtual]
 

Returns the number of audio tracks on the disc.

virtual bool audiere::CDDevice::isDoorOpen  )  [pure virtual]
 

Returns true if the door is open.

virtual bool audiere::CDDevice::isPlaying  )  [pure virtual]
 

Returns true if the CD is currently playing a sound, this could be through us, or through some other program.

virtual void audiere::CDDevice::openDoor  )  [pure virtual]
 

Opens this device's door.

virtual void audiere::CDDevice::pause  )  [pure virtual]
 

pauses playback of the track that is currently playing (if any) This does nothing if no track is playing

virtual void audiere::CDDevice::play int  track  )  [pure virtual]
 

Starts playback of the given track. If another track was already playing, the previous track is stopped. IMPORTANT: Tracks are indexed from 0 to getTrackCount() - 1.

virtual void audiere::CDDevice::resume  )  [pure virtual]
 

Resumes playback of the track that is currently paused (if any). This does nothing if no track is paused.

virtual void audiere::CDDevice::stop  )  [pure virtual]
 

Stops the playback, if the playback was already stopped, this does nothing.


The documentation for this class was generated from the following file:
Generated on Mon Feb 13 23:07:25 2006 for audiere by  doxygen 1.4.6