-#if 0
- if (_send_smpte_update) {
- // Send full SMPTE time and reset quarter frames
- cerr << "[DR] Sending full SMTPE update" << endl;
- // Re-calculate timing of first quarter frame
- smpte_to_sample( transmitting_smpte_time, outbound_mtc_smpte_frame, true /* use_offset */, false );
- // Compensate for audio latency
- //outbound_mtc_smpte_frame += _worst_output_latency;
- send_full_time_code(nframes);
- _send_smpte_update = false;
- next_quarter_frame_to_send = 0;
- }
-#endif
-
- //cerr << "A - " << _transport_frame << " - " << outbound_mtc_smpte_frame
- //<< " - " << next_quarter_frame_to_send << " - " << quarter_frame_duration << endl;
-
- // Note: Unlike the previous implementation of this function (for slow MIDI I/O),
- // this now sends all MTC messages for _this_ frame, not messages from the past
- // up until the start of the current frame (any messages in the past must have
- // been sent last cycle). This assertion enforces this:
- //assert(outbound_mtc_smpte_frame >= _transport_frame
- // && (outbound_mtc_smpte_frame - _transport_frame) < nframes);
- /*if ( ! (outbound_mtc_smpte_frame >= _transport_frame
- && (outbound_mtc_smpte_frame - _transport_frame) < nframes)) { */
- if (outbound_mtc_smpte_frame + (next_quarter_frame_to_send * quarter_frame_duration)
- < _transport_frame) {
- cerr << "[MTC] ERROR: MTC message stamped " << outbound_mtc_smpte_frame
- << " in cycle starting " << _transport_frame << endl;
- return 0;
- } else {
- //cerr << "[MTC] OK" << endl;
- }