Add back in the code used to store the volume level set initially.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user