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 () |
Definition at line 9 of file cd_win32.cpp.
|
Definition at line 11 of file cd_win32.cpp. References audiere::MCIDevice::sendCommand(). |
|
Definition at line 22 of file cd_win32.cpp. References stop(). |
|
Closes this device's door.
Implements audiere::CDDevice. Definition at line 75 of file cd_win32.cpp. References audiere::MCIDevice::sendCommand(). |
|
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(). |
|
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. |
|
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(). |
|
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(). |
|
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(). |
|
Opens this device's door.
Implements audiere::CDDevice. Definition at line 71 of file cd_win32.cpp. References audiere::MCIDevice::sendCommand(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |