mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-24 22:46:14 +02:00
Fix mixer script
This commit is contained in:
parent
9253b00bcc
commit
e57dc0888f
8 changed files with 51 additions and 50 deletions
|
@ -230,6 +230,7 @@ void Controller::getNextMessage()
|
|||
player_->setVolumeCallback(
|
||||
[this](const Player::Volume& volume)
|
||||
{
|
||||
// Cache the last volume and check if it really changed in the player's volume callback
|
||||
static Player::Volume last_volume{-1, true};
|
||||
if (volume != last_volume)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue