From: Mike Brady Date: Mon, 9 Nov 2015 13:29:04 +0000 (+0000) Subject: Add back in the code used to store the volume level set initially. X-Git-Tag: 2.7.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0bfbdc04e4a4fb1784c529e56945ce874b14425;p=thirdparty%2Fshairport-sync.git Add back in the code used to store the volume level set initially. --- diff --git a/audio_alsa.c b/audio_alsa.c index f2afc1a5..018563ee 100644 --- a/audio_alsa.c +++ b/audio_alsa.c @@ -447,6 +447,7 @@ static void parameters(audio_parameters *info) { static void volume(double vol) { // debug(1,"Setting volume db to %f, for volume input of %f.",vol_setting/100,vol); + set_volume = vol; if (snd_mixer_selem_set_playback_dB_all(alsa_mix_elem, vol, -1) != 0) die("Failed to set playback dB volume"); }