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 () |
Definition at line 10 of file cd_unix.cpp.
|
Definition at line 12 of file cd_unix.cpp. |
|
Definition at line 17 of file cd_unix.cpp. References stop(). |
|
Closes this device's door.
Implements audiere::CDDevice. Definition at line 82 of file cd_unix.cpp. |
|
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(). |
|
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. |
|
Returns the number of audio tracks on the disc. Implements audiere::CDDevice. Definition at line 26 of file cd_unix.cpp. References containsCD(). |
|
Returns true if the door is open.
Implements audiere::CDDevice. Definition at line 73 of file cd_unix.cpp. References ADR_LOG. |
|
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. |
|
Opens this device's door.
Implements audiere::CDDevice. Definition at line 78 of file cd_unix.cpp. |
|
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. |
|
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. |
|
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. |
|
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(). |