Add logarithmic volume_control_profile mode

This commit is contained in:
dasl-
2023-07-02 09:27:53 -04:00
parent c2abee35d0
commit baf51cf2a7
6 changed files with 47 additions and 2 deletions
+3
View File
@@ -3432,6 +3432,9 @@ void player_volume_without_notification(double airplay_volume, rtsp_conn_info *c
else if (config.volume_control_profile == VCP_flat)
scaled_attenuation =
flat_vol2attn(airplay_volume, max_db, min_db); // no cancellation points
else if (config.volume_control_profile == VCP_logarithmic)
scaled_attenuation =
logarithmic_vol2attn(airplay_volume, max_db, min_db); // no cancellation points
else
debug(1, "player_volume_without_notification: unrecognised volume control profile");
}