- Jan 2, 2006
- 10,455
- 35
- 91
Wasn't sure whether to put this in mobile devices or here.
I'm completely new to Tasker.
Anyway, I have a USB amp/DAC that I hook up to my Galaxy S5 running Nougat for playing music. Unfortunately, the amp doesn't have physical onboard volume controls, but the OS can adjust the volume of the amp by sending commands to it. Android doesn't seem to have an easy way to adjust the volume of the amp though.
The amp's internal volume can be set via the following shell commands:
This sets the internal volume of the amp to 60%.
I want to create a slider with Tasker Scenes.
How do I get the slider to run the shell command each time it moves and to change the percentage value to the slider value?
I'm completely new to Tasker.
Anyway, I have a USB amp/DAC that I hook up to my Galaxy S5 running Nougat for playing music. Unfortunately, the amp doesn't have physical onboard volume controls, but the OS can adjust the volume of the amp by sending commands to it. Android doesn't seem to have an easy way to adjust the volume of the amp though.
The amp's internal volume can be set via the following shell commands:
Code:
su
alsa_amixer -c1 set PCM 60%
This sets the internal volume of the amp to 60%.
I want to create a slider with Tasker Scenes.
How do I get the slider to run the shell command each time it moves and to change the percentage value to the slider value?