mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Allow cloning SPIRC
- which is just a tokio::sync::mpsc sender, so this should be safe - prep for MPRIS support, which will use this to control playback
This commit is contained in:
parent
f96f36c064
commit
949a886f62
1 changed files with 1 additions and 0 deletions
|
@ -160,6 +160,7 @@ const CONTEXT_FETCH_THRESHOLD: u32 = 5;
|
||||||
const VOLUME_STEPS: i64 = 64;
|
const VOLUME_STEPS: i64 = 64;
|
||||||
const VOLUME_STEP_SIZE: u16 = 1024; // (u16::MAX + 1) / VOLUME_STEPS
|
const VOLUME_STEP_SIZE: u16 = 1024; // (u16::MAX + 1) / VOLUME_STEPS
|
||||||
|
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct Spirc {
|
pub struct Spirc {
|
||||||
commands: mpsc::UnboundedSender<SpircCommand>,
|
commands: mpsc::UnboundedSender<SpircCommand>,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue