_editor->show_verbose_time_cursor (_cursor->current_frame, 10);
if (_editor->session() && _item == &_editor->playhead_cursor->canvas_item) {
- _editor->session()->request_locate (_editor->playhead_cursor->current_frame, false);
- _editor->_pending_locate_request = true;
+ _editor->session()->send_mmc_locate (_editor->playhead_cursor->current_frame);
}
boost::shared_ptr<SessionPlaylists> playlists;
+ void send_mmc_locate (nframes64_t);
+
protected:
friend class AudioEngine;
void set_block_size (nframes_t nframes);
// FIXME: where should this really be? [DR]
//send_full_time_code();
- Timecode::Time time;
- timecode_time_subframes (_transport_frame, time);
_mmc->send (MIDI::MachineControlCommand (MIDI::MachineControl::cmdStop));
- _mmc->send (MIDI::MachineControlCommand (time));
+ send_mmc_locate (_transport_frame);
if (_transport_speed < 0.0f) {
todo = (PostTransportWork (todo | PostTransportStop | PostTransportReverse));
_send_timecode_update = true;
if (with_mmc) {
- Timecode::Time time;
- timecode_time_subframes (_transport_frame, time);
- _mmc->send (MIDI::MachineControlCommand (time));
+ send_mmc_locate (_transport_frame);
}
Located (); /* EMIT SIGNAL */
}
return false;
}
+
+void
+Session::send_mmc_locate (nframes64_t t)
+{
+ Timecode::Time time;
+ timecode_time_subframes (t, time);
+ _mmc->send (MIDI::MachineControlCommand (time));
+}