hifiberry / hifiberry-dsp

DSP toolkit
MIT License
138 stars 36 forks source link

Implemented volume adjustment feature #36

Closed elagil closed 2 years ago

elagil commented 3 years ago

Currently, there are only the command-line options get-volume and set-volume. I wanted to change the volume on a DSP volume register incrementally, for example with a remote control.

Thus, this pull request implements a new feature: adjust-volume. It uses the same types of inputs as set-volume, but performs a relative volume adjustment. Maximum and minimum volumes are bounded for safety reasons [0, 1].

Documentation was also added. The code was fully tested with a local installation.

hifiberry commented 2 years ago

Thank you for the contribution.