mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
prepare reporting slave delta & MTC slave implementation
git-svn-id: svn://localhost/ardour2/branches/3.0@13276 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
3769c060f2
commit
a6bc97add9
3 changed files with 22 additions and 3 deletions
|
|
@ -1121,7 +1121,7 @@ AudioClock::set_timecode (framepos_t when, bool /*force*/)
|
|||
_left_layout->set_text (string_compose ("%1 %2",
|
||||
sync_source_to_string(sync_src, true),
|
||||
dynamic_cast<TimecodeSlave*>(slave)->approximate_current_position()));
|
||||
_right_layout->set_text ("+- 0"); // XXX
|
||||
_right_layout->set_text (slave->approximate_current_delta());
|
||||
} else {
|
||||
_left_layout->set_text (string_compose ("%1 --pending--",
|
||||
sync_source_to_string(sync_src, true)));
|
||||
|
|
@ -1131,14 +1131,14 @@ AudioClock::set_timecode (framepos_t when, bool /*force*/)
|
|||
case MIDIClock:
|
||||
_left_layout->set_text (string_compose ("%1",
|
||||
sync_source_to_string(sync_src, true)));
|
||||
_right_layout->set_text ("");
|
||||
_right_layout->set_text (slave->approximate_current_delta());
|
||||
break;
|
||||
case LTC:
|
||||
if (slave) {
|
||||
_left_layout->set_text (string_compose ("%1 %2",
|
||||
sync_source_to_string(sync_src, true),
|
||||
dynamic_cast<TimecodeSlave*>(slave)->approximate_current_position()));
|
||||
_right_layout->set_text ("+- 0"); // XXX
|
||||
_right_layout->set_text (slave->approximate_current_delta());
|
||||
} else {
|
||||
_left_layout->set_text (string_compose ("%1 --pending--",
|
||||
sync_source_to_string(sync_src, true)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue