summaryrefslogtreecommitdiff
path: root/libs/timecode
diff options
context:
space:
mode:
authorSakari Bergen <sakari.bergen@beatwaves.net>2010-12-18 19:27:04 +0000
committerSakari Bergen <sakari.bergen@beatwaves.net>2010-12-18 19:27:04 +0000
commit94c69b3c915c3fa8f8029e514240bca5bdb90def (patch)
treedf8a37f0596992bc72219da5b53b2cb02f9f0eab /libs/timecode
parentffadfff6506e507b09853e4c7e50bcedffa29cce (diff)
Finally implement position aware silence adding in export (i.e. bbt times are converted to frames correctly)
This will work when Session::convert_to_frames_at is fixed :) git-svn-id: svn://localhost/ardour2/branches/3.0@8295 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/timecode')
-rw-r--r--libs/timecode/timecode/time.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/timecode/timecode/time.h b/libs/timecode/timecode/time.h
index cd24001807..bcb078f3f1 100644
--- a/libs/timecode/timecode/time.h
+++ b/libs/timecode/timecode/time.h
@@ -52,6 +52,13 @@ struct Time {
subframes = 0;
rate = a_rate;
}
+
+ bool operator== (const Time& other) const {
+ return negative == other.negative && hours == other.hours &&
+ minutes == other.minutes && seconds == other.seconds &&
+ frames == other.frames && subframes == other.subframes &&
+ rate == other.rate && drop == other.drop;
+ }
std::ostream& print (std::ostream& ostr) const {
if (negative) {