// we have to consider the settings ignore_volume_control and mute.
if (airplay_volume == -144.0) {
-
- if ((config.output->mute) && (config.output->mute(1) == 0))
- debug(2,
- "player_volume_without_notification: volume mode is %d, airplay_volume is %f, "
- "hardware mute is enabled.",
- volume_mode, airplay_volume);
- else {
- conn->software_mute_enabled = 1;
- debug(2,
- "player_volume_without_notification: volume mode is %d, airplay_volume is %f, "
- "software mute is enabled.",
- volume_mode, airplay_volume);
+ // only mute if you're not ignoring the volume control
+ if (config.ignore_volume_control == 0) {
+ if ((config.output->mute) && (config.output->mute(1) == 0))
+ debug(2,
+ "player_volume_without_notification: volume mode is %d, airplay_volume is %f, "
+ "hardware mute is enabled.",
+ volume_mode, airplay_volume);
+ else {
+ conn->software_mute_enabled = 1;
+ debug(2,
+ "player_volume_without_notification: volume mode is %d, airplay_volume is %f, "
+ "software mute is enabled.",
+ volume_mode, airplay_volume);
+ }
}
-
} else {
int32_t max_db = 0, min_db = 0;
switch (volume_mode) {