aboutsummaryrefslogtreecommitdiff
path: root/sound/timestamp.h
diff options
context:
space:
mode:
authorMax Horn2010-01-06 12:15:05 +0000
committerMax Horn2010-01-06 12:15:05 +0000
commit1c6ccf8000c8eb34e4ae3d68312a23261f87862c (patch)
treebf4bc59de8797536a2a91d985d0fbfde44fcaffe /sound/timestamp.h
parent5b635fd610a2d1f895adadbb43af3a76a36f1fd0 (diff)
downloadscummvm-rg350-1c6ccf8000c8eb34e4ae3d68312a23261f87862c.tar.gz
scummvm-rg350-1c6ccf8000c8eb34e4ae3d68312a23261f87862c.tar.bz2
scummvm-rg350-1c6ccf8000c8eb34e4ae3d68312a23261f87862c.zip
Add more comparision operators to Timestamp
svn-id: r47071
Diffstat (limited to 'sound/timestamp.h')
-rw-r--r--sound/timestamp.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/sound/timestamp.h b/sound/timestamp.h
index 2e8689a81d..2d4f3db693 100644
--- a/sound/timestamp.h
+++ b/sound/timestamp.h
@@ -90,12 +90,11 @@ public:
* as equal even if they use different framerates.
*/
bool operator==(const Timestamp &ts) const;
-
bool operator!=(const Timestamp &ts) const;
-// bool operator<(const Timestamp &ts) const;
-// bool operator<=(const Timestamp &ts) const;
-// bool operator>(const Timestamp &ts) const;
-// bool operator>=(const Timestamp &ts) const;
+ bool operator<(const Timestamp &ts) const;
+ bool operator<=(const Timestamp &ts) const;
+ bool operator>(const Timestamp &ts) const;
+ bool operator>=(const Timestamp &ts) const;
/**
* Returns a new timestamp, which corresponds to the time encoded
@@ -129,6 +128,10 @@ public:
/** Return the framerate used by this timestamp. */
int getFramerate() const { return _framerate / _framerateFactor; }
+
+protected:
+
+ int cmp(const Timestamp &ts) const;
};