Alex
Alex

Reputation: 43

Set volume of ALSA stream

I need to be able to set the volume of my ALSA stream (snd_pcm_t from the PCM Interface). This is a common operation and i don't understand why there is no easy way? How can i do this? Streaming attenuated data is not an option since this will cause choppy volume adjustments because data is buffered. In DirectSound and WinMM it's a simple function call. Have i missed something? Should i use the mixer interface? The control interface? I see no connection between snd_pcm_t and the control interface. Am i using the wrong API?

Upvotes: 4

Views: 1053

Answers (1)

Alex
Alex

Reputation: 58

I am porting to PulseAudio instead, seems to be well performing and has better documentation.

Upvotes: 1

Related Questions