Page 1 of 1

Audio volume Actions confusion

Posted: 16 Oct 2015 13:52
by Wibbly
So there are 3:

Store Audio Volumes
Restore Audio Volumes and
Set Audio (Stream) Volume

Store and Restore Audio Volumes allows me to store/restore volumes (via global variables) for
Alarm
DTMF
Music
Notification
Ring
System and
Voice Call

1. I presume I can manually edit the global variables in a script to customise the volumes as a 'profile' before a Restore, right?

Set Audio Volume seems to have a different set of volumes I can change (some of which overlap with the above, but not all, plus some extra ones)

2. What is the use case for using Set Audio Volume vs. the Store and Restore Audio Volumes methods for controlling volumes? Is one or other depreciated?

3. I seem to recall one of the later Android API levels depreciated the use of some of the volume levels (they became less granular?). For Android 5.1.1 (and eventually 6) what is the most appropriate way to manage volumes (which Actions?) and are some of the volume level settings now redundant?

Any help appreciated :)

Re: Audio volume Actions confusion

Posted: 16 Oct 2015 19:37
by Martin
Store/Restore is mostly meant to be used to store/restore the volume of every audio stream if you like to temporarily lower the volumes but later restore to the regular levels you used before. Using many actions to set the volume was not very comfortable and restoring was a problem since the action Set Audio Volume did not support variables.
The next version of Automagic will also support variables for the regular action Set Audio Volume so Restore Audio Volumes and Set Audio Volume are a bit redundant, maybe I will merge the two actions in the future.

Some Android Versions/ROMs combined some audio stream so it was not possible to change them independently, changing one stream also affected the other one. The internal API of Android still allows to change single streams so I will provide the actions also in the future as long as it technically works.

Re: Audio volume Actions confusion

Posted: 16 Oct 2015 20:49
by Wibbly
Thanks Martin