All Classes |Grouped Classes |Index

Class CL_CDDrive

CD drive audio interface. More...

Derived from:

None

Derived by:

None

Group:

CD Audio (Sound)

#include <ClanLib/sound.h>

Class Members:

Construction:

CL_CDDrive

Constructs a null instance.


Attributes:

is_null

Returns true if this object is invalid.

throw_if_null

Throw an exception if this object is invalid.

get_drive_path

Get the path of the CD drive.

get_cd_name

Get the name of the CD.

get_num_tracks

Get the number of tracks available on the cd.

is_playing

Returns true if the CD drive is playing.

get_cur_track

Returns the current track.

get_cur_frame

Returns the current frame on the track.

get_drives

Returns the amount of CD drives available on the system.


Operations:

play_tracks

Play from track 'track' til track 'end_track'.

play_frames

Play from frame 'frame' to 'end_frame'.

play_track

Play track 'track'. Returns true if successful.

stop

Stop playing.

pause

Pause the playback.

resume

Resume the playback.

Detailed description:

Use this class to control the CDROM drive in your computer.