mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Call start and stop on mixer
This commit is contained in:
parent
5ef28bf2a5
commit
44467a44d6
1 changed files with 3 additions and 0 deletions
|
@ -290,9 +290,11 @@ impl SpircInternal {
|
||||||
}
|
}
|
||||||
MessageType::kMessageTypePlay => {
|
MessageType::kMessageTypePlay => {
|
||||||
self.player.play();
|
self.player.play();
|
||||||
|
self.mixer.start();
|
||||||
}
|
}
|
||||||
MessageType::kMessageTypePause => {
|
MessageType::kMessageTypePause => {
|
||||||
self.player.pause();
|
self.player.pause();
|
||||||
|
self.mixer.stop();
|
||||||
}
|
}
|
||||||
MessageType::kMessageTypeNext => {
|
MessageType::kMessageTypeNext => {
|
||||||
self.index = (self.index + 1) % self.tracks.len() as u32;
|
self.index = (self.index + 1) % self.tracks.len() as u32;
|
||||||
|
@ -314,6 +316,7 @@ impl SpircInternal {
|
||||||
if self.is_active && frame.get_device_state().get_is_active() {
|
if self.is_active && frame.get_device_state().get_is_active() {
|
||||||
self.is_active = false;
|
self.is_active = false;
|
||||||
self.player.stop();
|
self.player.stop();
|
||||||
|
self.mixer.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MessageType::kMessageTypeVolume => {
|
MessageType::kMessageTypeVolume => {
|
||||||
|
|
Loading…
Reference in a new issue