From 0182cac749f0d1c0aa2e2698e273e9079d8c3daf Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Wed, 3 May 2017 21:48:48 +0100 Subject: [PATCH] Don't turn the software volume down to zero when muting --- player.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/player.c b/player.c index 064594b5..98e3f34b 100644 --- a/player.c +++ b/player.c @@ -2222,7 +2222,10 @@ void player_volume(double airplay_volume, rtsp_conn_info* conn) { // do a mute // needed even with hardware mute, as when sound is unmuted it might otherwise be very loud. hardware_attenuation = hw_min_db; - software_attenuation = sw_min_db; +// software_attenuation = sw_min_db; + software_attenuation = sw_max_db - (max_db - hw_max_db); // e.g. if the hw_max_db is +4 and + // the max is +40, this will be -36 + // (all by 100, of course) if (config.output->mute) config.output->mute(1); // use real mute if it's there