From 94c69b3c915c3fa8f8029e514240bca5bdb90def Mon Sep 17 00:00:00 2001 From: Sakari Bergen Date: Sat, 18 Dec 2010 19:27:04 +0000 Subject: 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 --- libs/timecode/timecode/time.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libs/timecode') 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) { -- cgit v1.2.3