Add back in the code used to store the volume level set initially.

This commit is contained in:
Mike Brady
2015-11-09 13:29:04 +00:00
parent 5898c5b29f
commit b0bfbdc04e
+1
View 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");
}