// 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;
}
- if (_mtc_port) {
+ if (_mtc_input_port) {
try {
- new_slave = new MTC_Slave (*this, *_mtc_port);
+ new_slave = new MTC_Slave (*this, *_mtc_input_port);
}
catch (failed_constructor& err) {
return;
}
- if (_midi_clock_port) {
+ if (_midi_clock_input_port) {
try {
- new_slave = new MIDIClock_Slave (*this, *_midi_clock_port, 24);
+ new_slave = new MIDIClock_Slave (*this, *_midi_clock_input_port, 24);
}
catch (failed_constructor& err) {
}
return false;
}
+
+void
+Session::send_mmc_locate (nframes64_t t)
+{
+ Timecode::Time time;
+ timecode_time_subframes (t, time);
+ _mmc->send (MIDI::MachineControlCommand (time));
+}