From b0bfbdc04e4a4fb1784c529e56945ce874b14425 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Mon, 9 Nov 2015 13:29:04 +0000 Subject: [PATCH] Add back in the code used to store the volume level set initially. --- audio_alsa.c | 1 + 1 file changed, 1 insertion(+) 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"); }