Use hardware volume control only to mute when there is a mixer but no switch.

This commit is contained in:
Mike Brady
2017-05-05 17:04:08 +01:00
parent ad375d92cf
commit c4fe414e94
+3 -1
View File
@@ -2231,8 +2231,10 @@ void player_volume(double airplay_volume, rtsp_conn_info* conn) {
// debug(1,"Mute, with hardware mute and software_attenuation set to %d.",software_attenuation);
config.output->mute(1); // use real mute if it's there
} else {
software_attenuation = sw_min_db; // set any software output to zero too
if (config.output->volume==NULL) { // if there is also no hardware volume control
software_attenuation = sw_min_db; // set any software output to zero too
// debug(1,"Mute, with no hardware mute and software_attenuation set to %d.",software_attenuation);
}
}
} else {
if (config.output->mute)