Fix mixer script

This commit is contained in:
badaix 2024-04-02 21:53:36 +02:00
parent 9253b00bcc
commit e57dc0888f
8 changed files with 51 additions and 50 deletions

View file

@ -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)
{