From 39cdac34d544c28ff8a685fc3110d86606cb5d81 Mon Sep 17 00:00:00 2001 From: casey Date: Thu, 30 Jun 2016 16:47:30 -0700 Subject: [PATCH] Ugh, one more minor tweak. Start smoothed time at -1.0f to make calculations a bit more accurate. --- src/musikbox/app/window/TransportWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/musikbox/app/window/TransportWindow.cpp b/src/musikbox/app/window/TransportWindow.cpp index a8c1a0509..c7b54391a 100755 --- a/src/musikbox/app/window/TransportWindow.cpp +++ b/src/musikbox/app/window/TransportWindow.cpp @@ -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) }