diff options
author | Robin Gareus <robin@gareus.org> | 2013-03-02 22:52:39 +0000 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-03-02 22:52:39 +0000 |
commit | ea29eb0d7dcc334b87f6ac3a8f884a5edb7d2ed4 (patch) | |
tree | 59f6c8ddbefe5b22dec7e151af7bba91ca9b743b /libs/ardour/ardour/slave.h | |
parent | 97abc198035163e202415fbb9ccb375ea8f90dc8 (diff) |
fix MTC slave+generator for non integer quarter_frame_duration
e.g. 44.1k [SPS] / 30 [fps] / 4 [MTC-frames per timecode-frame] = 367.5 [samples per MTC-frame]
git-svn-id: svn://localhost/ardour2/branches/3.0@14115 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/slave.h')
-rw-r--r-- | libs/ardour/ardour/slave.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/ardour/slave.h b/libs/ardour/ardour/slave.h index 471a632f6e..508664e31b 100644 --- a/libs/ardour/ardour/slave.h +++ b/libs/ardour/ardour/slave.h @@ -240,7 +240,7 @@ class TimecodeSlave : public Slave { 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 + 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. */ @@ -282,6 +282,7 @@ class MTC_Slave : public TimecodeSlave { SafeTime current; framepos_t mtc_frame; /* current time */ + double mtc_frame_dll; framepos_t last_inbound_frame; /* when we got it; audio clocked */ MIDI::byte last_mtc_fps_byte; framepos_t window_begin; |