This PR adds support for volume control. It adds the ---alsamixer command line option and if supplied it will control the volume. If not, volume control is disabled. The volume state is also stored and persists between sessions.
The easiest way to find the mixer name is to run alsamixer while playing some music and play around with all the sliders until you find the correct control. Take note of the name of the control at the bottom. That will be the name you would supply with the --alsamixer option.
This is my first stab at Go Lang so I'm sure my code could be streamlined. But it does work at least. :)
This PR adds support for volume control. It adds the
---alsamixer
command line option and if supplied it will control the volume. If not, volume control is disabled. The volume state is also stored and persists between sessions.The easiest way to find the mixer name is to run alsamixer while playing some music and play around with all the sliders until you find the correct control. Take note of the name of the control at the bottom. That will be the name you would supply with the
--alsamixer
option.This is my first stab at Go Lang so I'm sure my code could be streamlined. But it does work at least. :)