CD drive audio interface. More...
#include <cd_drive.h>
Public Member Functions | |
Construction | |
| CDDrive () | |
| Constructs a null instance. More... | |
| virtual | ~CDDrive () |
Operations | |
| bool | play_tracks (int track, int end_track=0) |
| Play from track 'track' til track 'end_track'. More... | |
| bool | play_frames (int frame, int end_frame=0) |
| Play from frame 'frame' to 'end_frame'. More... | |
| bool | play_track (int track) |
| Play track 'track'. Returns true if successful. More... | |
| void | stop () |
| Stop playing. More... | |
| void | pause () |
| Pause the playback. More... | |
| void | resume () |
| Resume the playback. More... | |
Attributes | |
| bool | is_null () const |
| Returns true if this object is invalid. More... | |
| void | throw_if_null () const |
| Throw an exception if this object is invalid. More... | |
| std::string | get_drive_path () |
| Get the path of the CD drive. More... | |
| std::string | get_cd_name () |
| Get the name of the CD. More... | |
| int | get_num_tracks () |
| Get the number of tracks available on the cd. More... | |
| bool | is_playing () |
| Returns true if the CD drive is playing. More... | |
| int | get_cur_track () |
| Returns the current track. More... | |
| int | get_cur_frame () |
| Returns the current frame on the track. More... | |
| static std::vector< CDDrive > & | get_drives () |
| Returns the amount of CD drives available on the system. More... | |
CD drive audio interface.
Use this class to control the CDROM drive in your computer.