Set ALSA Flow Volume

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?

+3
source share
1 answer

I port to PulseAudio instead, it seems to work well and has better documentation.

+1
source

Source: https://habr.com/ru/post/1772959/


All Articles