From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Wed, 29 Jun 2022 16:28:00 +0000 (+0100) Subject: Modify a player_volume_without_notification to show sw and hw attenuation in dB. X-Git-Tag: 4.1-rc1~24^2~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97ecff93bdd136a6fdd1efc284cb6e68b81d8476;p=thirdparty%2Fshairport-sync.git Modify a player_volume_without_notification to show sw and hw attenuation in dB. --- 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;