mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 22:26:29 +01:00
MTC generator, revert inert changes in previous commit.
This if() case is always true - ensured by assert(). git-svn-id: svn://localhost/ardour2/branches/3.0@13807 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
44a427f0f9
commit
1b66aa8605
1 changed files with 13 additions and 15 deletions
|
|
@ -509,7 +509,6 @@ Session::send_midi_time_code_for_cycle (framepos_t start_frame, framepos_t end_f
|
||||||
assert (msg_time >= start_frame);
|
assert (msg_time >= start_frame);
|
||||||
assert (msg_time < end_frame);
|
assert (msg_time < end_frame);
|
||||||
|
|
||||||
if (msg_time >= start_frame) {
|
|
||||||
/* convert from session frames back to JACK frames using the transport speed */
|
/* convert from session frames back to JACK frames using the transport speed */
|
||||||
pframes_t const out_stamp = (msg_time - start_frame) / _transport_speed;
|
pframes_t const out_stamp = (msg_time - start_frame) / _transport_speed;
|
||||||
assert (out_stamp < nframes);
|
assert (out_stamp < nframes);
|
||||||
|
|
@ -527,7 +526,6 @@ Session::send_midi_time_code_for_cycle (framepos_t start_frame, framepos_t end_f
|
||||||
DEBUG_TRACE (DEBUG::MTC, string_compose ("%1 qfm = %2, stamp = %3\n", DEBUG_STR(foo).str(), next_quarter_frame_to_send,
|
DEBUG_TRACE (DEBUG::MTC, string_compose ("%1 qfm = %2, stamp = %3\n", DEBUG_STR(foo).str(), next_quarter_frame_to_send,
|
||||||
out_stamp));
|
out_stamp));
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
|
|
||||||
// Increment quarter frame counter
|
// Increment quarter frame counter
|
||||||
next_quarter_frame_to_send++;
|
next_quarter_frame_to_send++;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue