mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-16 04:14:05 +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.VolumeChanged.connect(this, &TransportWindow::OnTransportVolumeChanged);
|
||||||
this->transport.TimeChanged.connect(this, &TransportWindow::OnTransportTimeChanged);
|
this->transport.TimeChanged.connect(this, &TransportWindow::OnTransportTimeChanged);
|
||||||
this->paused = false;
|
this->paused = false;
|
||||||
this->lastTime = 0.0f;
|
this->lastTime = -1.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
TransportWindow::~TransportWindow() {
|
TransportWindow::~TransportWindow() {
|
||||||
@ -212,7 +212,7 @@ void TransportWindow::ProcessMessage(IMessage &message) {
|
|||||||
|
|
||||||
void TransportWindow::OnPlaybackServiceTrackChanged(size_t index, TrackPtr track) {
|
void TransportWindow::OnPlaybackServiceTrackChanged(size_t index, TrackPtr track) {
|
||||||
this->currentTrack = track;
|
this->currentTrack = track;
|
||||||
this->lastTime = 0.0f;
|
this->lastTime = -1.0f;
|
||||||
DEBOUNCE_REFRESH(0)
|
DEBOUNCE_REFRESH(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user