diff options
author | Carl Hetherington <carl@carlh.net> | 2010-07-07 23:48:46 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-07-07 23:48:46 +0000 |
commit | 10ef65b696492e5e6e9abe009f2e2c4a3af51994 (patch) | |
tree | 93bdcd56328c89d52ec5e5e273e4a10decaf0212 /libs/ardour/session_midi.cc | |
parent | 28e3215afa99ab7974734a30feedc24ebcd534ab (diff) |
Transmit MTC on playhead drag, as per #3239.
git-svn-id: svn://localhost/ardour2/branches/3.0@7389 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_midi.cc')
-rw-r--r-- | libs/ardour/session_midi.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/ardour/session_midi.cc b/libs/ardour/session_midi.cc index 109a2bb5bc..29040dc4df 100644 --- a/libs/ardour/session_midi.cc +++ b/libs/ardour/session_midi.cc @@ -345,9 +345,10 @@ Session::mmc_record_enable (MIDI::MachineControl &mmc, size_t trk, bool enabled) /** Send MTC Full Frame message (complete Timecode time) for the start of this cycle. * This resets the MTC code, the next quarter frame message that is sent will be * the first one with the beginning of this cycle as the new start point. + * @param t time to send. */ int -Session::send_full_time_code(nframes_t /*nframes*/) +Session::send_full_time_code (nframes64_t const t) { /* This function could easily send at a given frame offset, but would * that be useful? Does ardour do sub-block accurate locating? [DR] */ @@ -361,11 +362,11 @@ Session::send_full_time_code(nframes_t /*nframes*/) return 0; } - // Get timecode time for this transport frame - sample_to_timecode(_transport_frame, timecode, true /* use_offset */, false /* no subframes */); + // Get timecode time for the given time + sample_to_timecode (t, timecode, true /* use_offset */, false /* no subframes */); transmitting_timecode_time = timecode; - outbound_mtc_timecode_frame = _transport_frame; + outbound_mtc_timecode_frame = t; // I don't understand this bit yet.. [DR] if (((mtc_timecode_bits >> 5) != MIDI::MTC_25_FPS) && (transmitting_timecode_time.frames % 2)) { |