Set the initial volume to 0.0 (full volume) if ignore_volume_control is selected. Add some code to explore remote_control. Still not even close to working.

This commit is contained in:
Mike Brady
2022-06-25 10:47:18 +01:00
parent fb151915ae
commit f551274a2e
3 changed files with 30 additions and 8 deletions
+2
View File
@@ -2096,6 +2096,8 @@ void *player_thread_func(void *arg) {
pthread_setcancelstate(oldState, NULL);
double initial_volume = config.airplay_volume; // default
if (config.ignore_volume_control != 0)
initial_volume = 0.0; // set the default to full volume if ignore volume control is on
if (conn->initial_airplay_volume_set) // if we have been given an initial volume
initial_volume = conn->initial_airplay_volume;
// set the default volume to whatever it was before, as stored in the config airplay_volume