audiere::CDDeviceUnix Class Reference

Inheritance diagram for audiere::CDDeviceUnix:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CDDeviceUnix (int device, const char *name)
 ~CDDeviceUnix ()
const char * getName ()
int getTrackCount ()
void play (int track)
void stop ()
void pause ()
void resume ()
bool isPlaying ()
bool containsCD ()
bool isDoorOpen ()
void openDoor ()
void closeDoor ()

Detailed Description

Definition at line 10 of file cd_unix.cpp.


Constructor & Destructor Documentation

audiere::CDDeviceUnix::CDDeviceUnix int  device,
const char *  name
[inline]
 

Definition at line 12 of file cd_unix.cpp.

audiere::CDDeviceUnix::~CDDeviceUnix  )  [inline]
 

Definition at line 17 of file cd_unix.cpp.

References stop().


Member Function Documentation

void audiere::CDDeviceUnix::closeDoor  )  [inline, virtual]
 

Closes this device's door.

Implements audiere::CDDevice.

Definition at line 82 of file cd_unix.cpp.

bool audiere::CDDeviceUnix::containsCD  )  [inline, virtual]
 

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

Implements audiere::CDDevice.

Definition at line 64 of file cd_unix.cpp.

Referenced by getTrackCount().

const char* audiere::CDDeviceUnix::getName  )  [inline, virtual]
 

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

Implements audiere::CDDevice.

Definition at line 22 of file cd_unix.cpp.

int audiere::CDDeviceUnix::getTrackCount  )  [inline, virtual]
 

Returns the number of audio tracks on the disc.

Implements audiere::CDDevice.

Definition at line 26 of file cd_unix.cpp.

References containsCD().

bool audiere::CDDeviceUnix::isDoorOpen  )  [inline, virtual]
 

Returns true if the door is open.

Implements audiere::CDDevice.

Definition at line 73 of file cd_unix.cpp.

References ADR_LOG.

bool audiere::CDDeviceUnix::isPlaying  )  [inline, virtual]
 

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

Implements audiere::CDDevice.

Definition at line 55 of file cd_unix.cpp.

void audiere::CDDeviceUnix::openDoor  )  [inline, virtual]
 

Opens this device's door.

Implements audiere::CDDevice.

Definition at line 78 of file cd_unix.cpp.

void audiere::CDDeviceUnix::pause  )  [inline, virtual]
 

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

Implements audiere::CDDevice.

Definition at line 47 of file cd_unix.cpp.

void audiere::CDDeviceUnix::play int  track  )  [inline, 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.

Implements audiere::CDDevice.

Definition at line 39 of file cd_unix.cpp.

void audiere::CDDeviceUnix::resume  )  [inline, virtual]
 

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

Implements audiere::CDDevice.

Definition at line 51 of file cd_unix.cpp.

void audiere::CDDeviceUnix::stop  )  [inline, virtual]
 

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

Implements audiere::CDDevice.

Definition at line 43 of file cd_unix.cpp.

Referenced by ~CDDeviceUnix().


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