mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-28 15:16:43 +00:00
Ugh, one more minor tweak. Start smoothed time at -1.0f to make
calculations a bit more accurate.
This commit is contained in:
parent
a1c5bea302
commit
39cdac34d5
@ -190,7 +190,7 @@ TransportWindow::TransportWindow(musik::box::PlaybackService& playback)
|
||||
this->transport.VolumeChanged.connect(this, &TransportWindow::OnTransportVolumeChanged);
|
||||
this->transport.TimeChanged.connect(this, &TransportWindow::OnTransportTimeChanged);
|
||||
this->paused = false;
|
||||
this->lastTime = 0.0f;
|
||||
this->lastTime = -1.0f;
|
||||
}
|
||||
|
||||
TransportWindow::~TransportWindow() {
|
||||
@ -212,7 +212,7 @@ void TransportWindow::ProcessMessage(IMessage &message) {
|
||||
|
||||
void TransportWindow::OnPlaybackServiceTrackChanged(size_t index, TrackPtr track) {
|
||||
this->currentTrack = track;
|
||||
this->lastTime = 0.0f;
|
||||
this->lastTime = -1.0f;
|
||||
DEBOUNCE_REFRESH(0)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user