I need to set the volume of my ALSA stream (snd_pcm_t from PCM interface). This is a normal operation, and I do not understand why there is no easy way? How can i do this? Streaming attenuated data is not an option, as this will lead to volume volatility as the data is buffered. In DirectSound and WinMM, this is a simple function call. Did I miss something? Should I use a mixer interface? Management interface? I do not see the connection between snd_pcm_t and the management interface. Am I using the wrong API?
source
share