Update of /cvsroot/pclasses/pclasses2/include/pclasses/System
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12015/include/pclasses/System
Modified Files:
CdRomDevice.h
Log Message:
Added size and startMSF/endMSF to CdRomDevice::Track.
Added play(const Track& from, const Track& to).
Index: CdRomDevice.h
===================================================================
RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/System/CdRomDevice.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CdRomDevice.h 31 Jan 2005 11:08:43 -0000 1.1
+++ CdRomDevice.h 1 Feb 2005 00:14:34 -0000 1.2
@@ -53,7 +53,7 @@
//! TOC-Entry
class Track;
- //! List of TOC-Entries
+ //! Track-list (the TOC)
typedef std::list<Track> TrackList;
CdRomDevice(const std::string& path, AccessMode access,
@@ -65,47 +65,69 @@
DiscStatus discStatus() throw(IO::IOError);
+ //! Eject media
void eject() throw(IO::IOError);
+ //! Read TOC (track-list)
TrackList readTOC() throw(IO::IOError);
+ //! Start audio playback
void play(uint8_t startMin, uint8_t startSec, uint8_t startFrame,
uint8_t endMin, uint8_t endSec, uint8_t endFrame)
throw(IO::IOError);
- void play(const Track& trk) throw(IO::IOError);
+ //! Play audio tracks
+ void play(const Track& from, const Track& to) throw(IO::IOError);
+ //! Stop audio playback
void stop() throw(IO::IOError);
+
+ //! Pause audio playback
void pause() throw(IO::IOError);
+
+ //! Resume audio playback
void resume() throw(IO::IOError);
};
+//! CD-ROM Trackinfo
class PSYSTEM_EXPORT CdRomDevice::Track {
public:
+ //! Type of Track
enum Type {
Data,
Audio
};
Track(unsigned int num, Type type,
- size_t lba);
+ size_t lba, size_t size);
~Track();
+ //! Returns the track-number
unsigned int num() const throw();
+
+ //! Returns the track-type
Type type() const throw();
+ //! Returns the LBA of this track
size_t lba() const throw();
+ size_t size() const throw();
+
+ uint8_t startMinute() const throw();
+ uint8_t startSecond() const throw();
+ uint8_t startFrame() const throw();
- uint8_t minute() const throw();
- uint8_t second() const throw();
- uint8_t frame() const throw();
+ uint8_t endMinute() const throw();
+ uint8_t endSecond() const throw();
+ uint8_t endFrame() const throw();
private:
unsigned int _num;
Type _type;
size_t _lba;
- uint8_t _msf[3];
+ size_t _size;
+ uint8_t _startMsf[3];
+ uint8_t _endMsf[3];
};
} // !namespace System
|