audiere::CDDeviceWin32 Class Reference

Inheritance diagram for audiere::CDDeviceWin32:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CDDeviceWin32 (const char *name)
 ~CDDeviceWin32 ()
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 9 of file cd_win32.cpp.


Constructor & Destructor Documentation

audiere::CDDeviceWin32::CDDeviceWin32 const char *  name  )  [inline]
 

Definition at line 11 of file cd_win32.cpp.

References audiere::MCIDevice::sendCommand().

audiere::CDDeviceWin32::~CDDeviceWin32  )  [inline]
 

Definition at line 22 of file cd_win32.cpp.

References stop().


Member Function Documentation

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

Closes this device's door.

Implements audiere::CDDevice.

Definition at line 75 of file cd_win32.cpp.

References audiere::MCIDevice::sendCommand().

bool audiere::CDDeviceWin32::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 61 of file cd_win32.cpp.

References audiere::MCIDevice::sendCommand(), and audiere::strcmp_case().

const char* audiere::CDDeviceWin32::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 26 of file cd_win32.cpp.

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

Returns the number of audio tracks on the disc.

Implements audiere::CDDevice.

Definition at line 30 of file cd_win32.cpp.

References audiere::MCIDevice::sendCommand().

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

Returns true if the door is open.

Implements audiere::CDDevice.

Definition at line 66 of file cd_win32.cpp.

References audiere::MCIDevice::sendCommand(), and audiere::strcmp_case().

bool audiere::CDDeviceWin32::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 56 of file cd_win32.cpp.

References audiere::MCIDevice::sendCommand(), and audiere::strcmp_case().

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

Opens this device's door.

Implements audiere::CDDevice.

Definition at line 71 of file cd_win32.cpp.

References audiere::MCIDevice::sendCommand().

void audiere::CDDeviceWin32::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 48 of file cd_win32.cpp.

References audiere::MCIDevice::sendCommand().

void audiere::CDDeviceWin32::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 34 of file cd_win32.cpp.

References audiere::MCIDevice::sendCommand().

void audiere::CDDeviceWin32::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 52 of file cd_win32.cpp.

References audiere::MCIDevice::sendCommand().

void audiere::CDDeviceWin32::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_win32.cpp.

References audiere::MCIDevice::sendCommand().

Referenced by ~CDDeviceWin32().


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