aboutsummaryrefslogtreecommitdiff
path: root/sound/timestamp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sound/timestamp.cpp')
-rw-r--r--sound/timestamp.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/timestamp.cpp b/sound/timestamp.cpp
index 8b0f660385..13de41ff06 100644
--- a/sound/timestamp.cpp
+++ b/sound/timestamp.cpp
@@ -53,6 +53,12 @@ Timestamp Timestamp::addFrames(int frames) const {
return timestamp;
}
+Timestamp Timestamp::addMsecs(int ms) const {
+ Timestamp timestamp(*this);
+ timestamp._msecs += ms;
+ return timestamp;
+}
+
int Timestamp::frameDiff(const Timestamp &b) const {
assert(_frameRate == b._frameRate);