Implement track preloading

Will preload the next track close to the end of the currently playing
track. Should make playback of queued tracks a little smoother.
This commit is contained in:
Henrik Friedrichsen
2021-04-11 15:51:19 +02:00
parent decf7c2aef
commit 98e572169b
5 changed files with 38 additions and 0 deletions

View File

@@ -328,6 +328,9 @@ fn main() {
queue.next(false);
}
}
Event::Queue(event) => {
queue.handle_event(event);
}
Event::SessionDied => spotify.start_worker(None),
}
}