开发者

Set volume of ALSA stream

开发者 https://www.devze.com 2023-01-23 04:24 出处:网络
I need to be able to set the volume of my开发者_JS百科 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? S

I need to be able to set the volume of my开发者_JS百科 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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消