mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 05:06:31 +01:00
add a delta sign to the slave delta display.
git-svn-id: svn://localhost/ardour2/branches/3.0@13423 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
cbc8c6b7cf
commit
8216e35c5b
3 changed files with 3 additions and 3 deletions
|
|
@ -546,7 +546,7 @@ LTC_Slave::approximate_current_delta() const
|
||||||
} else if ((monotonic_cnt - last_timestamp) > 2 * frames_per_ltc_frame) {
|
} else if ((monotonic_cnt - last_timestamp) > 2 * frames_per_ltc_frame) {
|
||||||
snprintf(delta, sizeof(delta), "flywheel");
|
snprintf(delta, sizeof(delta), "flywheel");
|
||||||
} else {
|
} else {
|
||||||
snprintf(delta, sizeof(delta), "%s%4" PRIi64 " sm",
|
snprintf(delta, sizeof(delta), "\u0394 %s%4" PRIi64 " sm",
|
||||||
PLUSMINUS(-current_delta), abs(current_delta));
|
PLUSMINUS(-current_delta), abs(current_delta));
|
||||||
}
|
}
|
||||||
return std::string(delta);
|
return std::string(delta);
|
||||||
|
|
|
||||||
|
|
@ -363,7 +363,7 @@ MIDIClock_Slave::approximate_current_delta() const
|
||||||
if (last_timestamp == 0 || _starting) {
|
if (last_timestamp == 0 || _starting) {
|
||||||
snprintf(delta, sizeof(delta), "\u2012\u2012\u2012\u2012");
|
snprintf(delta, sizeof(delta), "\u2012\u2012\u2012\u2012");
|
||||||
} else {
|
} else {
|
||||||
snprintf(delta, sizeof(delta), "%s%4" PRIi64 " sm",
|
snprintf(delta, sizeof(delta), "\u0394 %s%4" PRIi64 " sm",
|
||||||
PLUSMINUS(-current_delta), abs(current_delta));
|
PLUSMINUS(-current_delta), abs(current_delta));
|
||||||
}
|
}
|
||||||
return std::string(delta);
|
return std::string(delta);
|
||||||
|
|
|
||||||
|
|
@ -680,7 +680,7 @@ MTC_Slave::approximate_current_delta() const
|
||||||
snprintf(delta, sizeof(delta), "\u2012\u2012\u2012\u2012");
|
snprintf(delta, sizeof(delta), "\u2012\u2012\u2012\u2012");
|
||||||
} else {
|
} else {
|
||||||
// TODO if current_delta > 1 frame -> display timecode.
|
// TODO if current_delta > 1 frame -> display timecode.
|
||||||
snprintf(delta, sizeof(delta), "%s%4" PRIi64 " sm",
|
snprintf(delta, sizeof(delta), "\u0394 %s%4" PRIi64 " sm",
|
||||||
PLUSMINUS(-current_delta), abs(current_delta));
|
PLUSMINUS(-current_delta), abs(current_delta));
|
||||||
}
|
}
|
||||||
return std::string(delta);
|
return std::string(delta);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue