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

@@ -1,10 +1,12 @@
use crossbeam_channel::{unbounded, Receiver, Sender, TryIter};
use cursive::{CbSink, Cursive};
use crate::queue::QueueEvent;
use crate::spotify::PlayerEvent;
pub enum Event {
Player(PlayerEvent),
Queue(QueueEvent),
SessionDied,
}