mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-07 09:54:55 +00:00
Re-enabled time smoothing.
This commit is contained in:
parent
4febabe234
commit
f1ffce5662
@ -478,7 +478,7 @@ void TransportWindow::Update(TimeMode timeMode) {
|
||||
only works if REFRESH_INTERVAL_MS is 1000. */
|
||||
int secondsCurrent = (int) round(this->lastTime); /* mode == TimeLast */
|
||||
|
||||
if (false && timeMode == TimeSmooth) {
|
||||
if (timeMode == TimeSmooth) {
|
||||
double smoothedTime = this->lastTime += 1.0f; /* 1000 millis */
|
||||
double actualTime = transport.Position();
|
||||
|
||||
@ -491,7 +491,7 @@ void TransportWindow::Update(TimeMode timeMode) {
|
||||
|
||||
secondsCurrent = (int) round(smoothedTime);
|
||||
}
|
||||
else if (true || timeMode == TimeSync) {
|
||||
else if (timeMode == TimeSync) {
|
||||
this->lastTime = transport.Position();
|
||||
secondsCurrent = (int) round(this->lastTime);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user