I've been looking for a simple C code example to set the master volume of the ALSA mixer but could not find anything simple for this supposedly common operation.
I'm totally unfamiliar with ALSA, so making my own minimal example will take time. I would be happy if anyone could provide one.