mirror of
https://github.com/clangen/musikcube.git
synced 2024-10-02 13:02:35 +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. */
|
only works if REFRESH_INTERVAL_MS is 1000. */
|
||||||
int secondsCurrent = (int) round(this->lastTime); /* mode == TimeLast */
|
int secondsCurrent = (int) round(this->lastTime); /* mode == TimeLast */
|
||||||
|
|
||||||
if (false && timeMode == TimeSmooth) {
|
if (timeMode == TimeSmooth) {
|
||||||
double smoothedTime = this->lastTime += 1.0f; /* 1000 millis */
|
double smoothedTime = this->lastTime += 1.0f; /* 1000 millis */
|
||||||
double actualTime = transport.Position();
|
double actualTime = transport.Position();
|
||||||
|
|
||||||
@ -491,7 +491,7 @@ void TransportWindow::Update(TimeMode timeMode) {
|
|||||||
|
|
||||||
secondsCurrent = (int) round(smoothedTime);
|
secondsCurrent = (int) round(smoothedTime);
|
||||||
}
|
}
|
||||||
else if (true || timeMode == TimeSync) {
|
else if (timeMode == TimeSync) {
|
||||||
this->lastTime = transport.Position();
|
this->lastTime = transport.Position();
|
||||||
secondsCurrent = (int) round(this->lastTime);
|
secondsCurrent = (int) round(this->lastTime);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user