summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/smf_source.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-05-24 15:42:27 +0000
committerCarl Hetherington <carl@carlh.net>2010-05-24 15:42:27 +0000
commitdd134d8afb70e0db290baa732bdfcd4ff6d8daca (patch)
treeaf064df875e3c2a468663366d8c1b9ee49be3a3b /libs/ardour/ardour/smf_source.h
parenta4664d68c031c77c5e436fe97a92005b7d2019d8 (diff)
Note the time of the last event that was read by read_unlocked, so that the current time can be reset on a subsequent call.
git-svn-id: svn://localhost/ardour2/branches/3.0@7148 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/smf_source.h')
-rw-r--r--libs/ardour/ardour/smf_source.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/ardour/smf_source.h b/libs/ardour/ardour/smf_source.h
index 44080a8cff..d271cb0dba 100644
--- a/libs/ardour/ardour/smf_source.h
+++ b/libs/ardour/ardour/smf_source.h
@@ -86,7 +86,10 @@ private:
double _last_ev_time_beats;
sframes_t _last_ev_time_frames;
+ /** end time (start + duration) of last call to read_unlocked */
mutable sframes_t _smf_last_read_end;
+ /** time (in SMF ticks, 1 tick per _ppqn) of the last event read by read_unlocked */
+ mutable sframes_t _smf_last_read_time;
};
}; /* namespace ARDOUR */