Volume settings don't work properly

@volumio is it possible to change the volume commands from volume plus/minus to setting directly “actual volume +/-1” ?
Setting the volume directly to a certain value seams to work fine.

Kind regards,
Marcel

I’ve set up a golden rule for my audio-projects:
when it comes to volume control, never read, write only.

because it’s a control, not a sensor. don’t know very much about the mechanics inside volumio, still learning, but i wonder if there’s really a use-case where it’s inevitable to read hardware volume values.

my radical aproach is that only my frameworks sets the volume level, stores the value and makes it systemwide readable.
by only writing to hardware i eliminated 50% headaches, because i only have to take care that the volume is correctly set in different hw environments.

regards
phil

Hi Phil,

that’s an approach I agree with.
I would initially Set the hw volume and remember the value to work with later on.

Unfortunately i have no clue where to change the volumio code. Usually I’m programming PLCs… but that’s a different world.

Are you familiar with the volumio code?

Kind regards,
Marcel

i’m pretty new to volumio, but have you looked at
“/volumio/app/volumecontrol.js” ?

volumios princple is to work on ram rather than on sd-card, so changes there might not take effect until reboot.

I will have a look at that json file, as soon as I’m back from holidays :slight_smile:
Thanks