update timecode/position display where appropriate
git-svn-id: svn://localhost/ardour2/branches/3.0@12015 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
45ac9c8861
commit
260db68a69
|
@ -403,6 +403,8 @@ MackieControlProtocol::periodic ()
|
|||
for (Surfaces::iterator s = surfaces.begin(); s != surfaces.end(); ++s) {
|
||||
(*s)->periodic (now_usecs);
|
||||
}
|
||||
|
||||
update_timecode_display ();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -719,6 +721,10 @@ MackieControlProtocol::format_timecode_timecode (framepos_t now_frame)
|
|||
void
|
||||
MackieControlProtocol::update_timecode_display()
|
||||
{
|
||||
if (surfaces.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
boost::shared_ptr<Surface> surface = surfaces.front();
|
||||
|
||||
if (surface->type() != mcu || !surface->has_timecode_display()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user