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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user