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:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user