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