From 61c7af141d339187d229d28a09940e25b2e144f8 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 8 Dec 2016 12:26:41 +0100 Subject: Clarify "frames" (video, timecode) vs "samples" (audio) --- libs/ardour/mtc_slave.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/mtc_slave.cc') diff --git a/libs/ardour/mtc_slave.cc b/libs/ardour/mtc_slave.cc index 102694e7ac..5eda7e14a5 100644 --- a/libs/ardour/mtc_slave.cc +++ b/libs/ardour/mtc_slave.cc @@ -65,7 +65,7 @@ MTC_Slave::MTC_Slave (Session& s, MidiPort& p) busy_guard1 = busy_guard2 = 0; last_mtc_fps_byte = session.get_mtc_timecode_bits (); - quarter_frame_duration = (double(session.frames_per_timecode_frame()) / 4.0); + quarter_frame_duration = (double(session.samples_per_timecode_frame()) / 4.0); mtc_timecode = session.config.get_timecode_format(); a3e_timecode = session.config.get_timecode_format(); @@ -448,7 +448,7 @@ MTC_Slave::update_mtc_time (const MIDI::byte *msg, bool was_full, framepos_t now long int mtc_off = (long) rint(7.0 * qtr); DEBUG_TRACE (DEBUG::MTC, string_compose ("new mtc_frame: %1 | MTC-FpT: %2 A3-FpT:%3\n", - mtc_frame, (4.0*qtr), session.frames_per_timecode_frame())); + mtc_frame, (4.0*qtr), session.samples_per_timecode_frame())); switch (port->self_parser().mtc_running()) { case MTC_Backward: -- cgit v1.2.3