diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-10-12 22:04:21 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-10-12 22:04:21 +0000 |
commit | eaaca760c9e2e259f87801bce59442f5cf9d2210 (patch) | |
tree | 9a0295da4bc5bbb7d3370fb0ff5b98877541a642 /libs/ardour/ardour/slave.h | |
parent | 5eeecf82a0432c1ed951886539a7331c71c15af9 (diff) |
tweaks to be ready for more information timecode display in Timecode clock mode
git-svn-id: svn://localhost/ardour2/branches/3.0@13264 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/slave.h')
-rw-r--r-- | libs/ardour/ardour/slave.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/ardour/ardour/slave.h b/libs/ardour/ardour/slave.h index 24fd79c943..48da695417 100644 --- a/libs/ardour/ardour/slave.h +++ b/libs/ardour/ardour/slave.h @@ -230,6 +230,13 @@ class TimecodeSlave : public Slave { TimecodeSlave () {} virtual Timecode::TimecodeFormat apparent_timecode_format() const = 0; + + /* this is intended to be used by a UI and polled from a timeout. it should + return a string describing the current position of the TC source. it + should NOT do any computation, but should use a cached value + of the TC source position. + */ + virtual std::string approximate_current_position() const = 0; }; class MTC_Slave : public TimecodeSlave { @@ -250,6 +257,7 @@ class MTC_Slave : public TimecodeSlave { bool give_slave_full_control_over_transport_speed() const; Timecode::TimecodeFormat apparent_timecode_format() const; + std::string approximate_current_position() const; private: Session& session; @@ -325,6 +333,7 @@ public: bool give_slave_full_control_over_transport_speed() const; Timecode::TimecodeFormat apparent_timecode_format() const; + std::string approximate_current_position() const; private: int parse_ltc(const jack_nframes_t, const jack_default_audio_sample_t * const, const framecnt_t); |