]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Add back in the code used to store the volume level set initially.
authorMike Brady <mikebrady@eircom.net>
Mon, 9 Nov 2015 13:29:04 +0000 (13:29 +0000)
committerMike Brady <mikebrady@eircom.net>
Mon, 9 Nov 2015 13:29:04 +0000 (13:29 +0000)
audio_alsa.c

index f2afc1a52862ed0e59d4c6e41bf61fe0bd381759..018563ee21031cfcfdca1463d928d5455c42b663 100644 (file)
@@ -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");
 }