aboutsummaryrefslogtreecommitdiff
path: root/sound/timestamp.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/timestamp.h')
-rw-r--r--sound/timestamp.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/sound/timestamp.h b/sound/timestamp.h
index 410445eccd..fef4107535 100644
--- a/sound/timestamp.h
+++ b/sound/timestamp.h
@@ -126,11 +126,17 @@ public:
// unary minus
Timestamp operator-() const;
+ /**
+ * Compute the sum of two timestamps. This is only
+ * allowed if they use the same framerate.
+ */
Timestamp operator+(const Timestamp &ts) const;
- Timestamp operator-(const Timestamp &ts) const;
-// Timestamp &operator+=(const Timestamp &ts);
-// Timestamp &operator-=(const Timestamp &ts);
+ /**
+ * Compute the difference between two timestamps. This is only
+ * allowed if they use the same framerate.
+ */
+ Timestamp operator-(const Timestamp &ts) const;
/**
* Computes the number of frames between this timestamp and ts.