-
- SafeTime current;
- nframes_t mtc_frame; /* current time */
- nframes_t last_inbound_frame; /* when we got it; audio clocked */
- MIDI::byte last_mtc_fps_byte;
-
- double mtc_speed;
- nframes_t first_mtc_frame;
- nframes_t first_mtc_time;
-
- static const int32_t accumulator_size = 128;
- double accumulator[accumulator_size];
- int32_t accumulator_index;
- bool have_first_accumulated_speed;
-
- void reset ();
- void update_mtc_qtr (MIDI::Parser&);
- void update_mtc_time (const MIDI::byte *, bool);
- void update_mtc_status (MIDI::Parser::MTC_Status);
+ PIChaser* pic;
+
+ static const int frame_tolerance;
+
+ SafeTime current;
+ framepos_t mtc_frame; /* current time */
+ framepos_t last_inbound_frame; /* when we got it; audio clocked */
+ MIDI::byte last_mtc_fps_byte;
+ framepos_t window_begin;
+ framepos_t window_end;
+ framepos_t last_mtc_timestamp;
+ framepos_t last_mtc_frame;
+ bool did_reset_tc_format;
+ TimecodeFormat saved_tc_format;
+ size_t speed_accumulator_size;
+ double* speed_accumulator;
+ size_t speed_accumulator_cnt;
+ bool have_first_speed_accumulator;
+ double average_speed;
+ Glib::Mutex reset_lock;
+ uint32_t reset_pending;
+ bool reset_position;
+
+ void reset (bool with_pos);
+ void queue_reset (bool with_pos);
+ void maybe_reset ();
+
+ void update_mtc_qtr (MIDI::Parser&, int, framepos_t);
+ void update_mtc_time (const MIDI::byte *, bool, framepos_t);
+ void update_mtc_status (MIDI::MTC_Status);