From 97ecff93bdd136a6fdd1efc284cb6e68b81d8476 Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Wed, 29 Jun 2022 17:28:00 +0100 Subject: [PATCH] Modify a player_volume_without_notification to show sw and hw attenuation in dB. --- player.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/player.c b/player.c index 364a8b7e..f62bc29e 100644 --- a/player.c +++ b/player.c @@ -3252,10 +3252,10 @@ void player_volume_without_notification(double airplay_volume, rtsp_conn_info *c conn->software_mute_enabled = 0; debug(2, - "player_volume_without_notification: volume mode is %d, airplay volume is %f, " - "software_attenuation: %f, hardware_attenuation: %f, muting " + "player_volume_without_notification: volume mode is %d, airplay volume is %.2f, " + "software_attenuation dB: %.2f, hardware_attenuation dB: %.2f, muting " "is disabled.", - volume_mode, airplay_volume, software_attenuation, hardware_attenuation); + volume_mode, airplay_volume, software_attenuation / 100.0, hardware_attenuation / 100.0); } // here, store the volume for possible use in the future config.airplay_volume = airplay_volume;