Reference

CL_CDDrive(3)

CD drive audio interface.

NAME

CL_CDDrive - CD drive audio interface.

DESCRIPTION

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

CLASS MEMBERS

virtual ~CL_CDDrive()
virtual bool init()
virtual std::string get_drive_path()
virtual std::string get_cd_name()
virtual int get_num_tracks()
virtual bool is_playing()
virtual int get_cur_track()
virtual int get_cur_frame()
virtual bool play_tracks(
int track,
int end_track=0)

virtual bool play_frames(
int frame,
int end_frame=0)

virtual bool play_track(
int track)

virtual void stop()
virtual void pause()
virtual void resume()

MEMBERS WITH DESCRIPTIONS

virtual ~CL_CDDrive()
Description:

virtual bool init()
Description:

Call this one to initialize the cd drive.

virtual std::string get_drive_path()
Description:

Get the path of the CD drive. (what is this, starch?)

virtual std::string get_cd_name()
Description:

Get the name of the CD.

virtual int get_num_tracks()
Description:

Get the number of tracks available on the cd.

virtual bool is_playing()
Description:

Returns true if the CD drive is playing.

virtual int get_cur_track()
Description:

Returns the current track.

virtual int get_cur_frame()
Description:

Returns the current frame on the track.

virtual bool play_tracks(
int track,
int end_track=0)

Parameters:
track - Begin track.
end_track - End track.

Description:

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

virtual bool play_frames(
int frame,
int end_frame=0)

Parameters:
frame - Begin frame.
end_frame - End frame.

Description:

Play from frame 'frame' to 'end_frame'.

virtual bool play_track(
int track)

Description:

Play track 'track'. Returns true if successful.

virtual void stop()
Description:

Stop playing.

virtual void pause()
Description:

Pause the playback.

virtual void resume()
Description:

Resume the playback.

SEE ALSO

All ClanLib API classes can be found in clanlib (3).

AUTHORS

Originally written by Magnus Norddahl <[email protected]> and Martin Starch <[email protected]>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at http://somewhere.in.the.world.org).

See clanlib (3) to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.