[pulseaudio-discuss] Changing Volume on Streams ( not Sinks )

Tanu Kaskinen tanuk at iki.fi
Tue Jul 30 08:48:55 UTC 2019

On Mon, 2019-07-29 at 10:24 -0700, Brian Bulkowski wrote:
> Thank you Georg!
> About 12 hours ago I figured it out too. 
> pa_context_set_sink_input_volume() is the function I was looking for, 
> and I was mistakenly using pa_context_set_sink_volume_by_index(), an 
> obvious flaw on my part.
> The other way to get a sink-input id directly from a Stream, you don't 
> need to list them all and find what you're looking for. That would be 
> 'pa_stream_get_index'.
> I would suggest adding a single sentence to the doc set ---
> 'pa_stream_get_index' should note that what is returned is a 'sink 
> input' or 'source output' id, depending on the type of stream. The note 
> there says "useful for functions such as" which are functions that take 
> those kinds of IDs, but a little clarity would be helpful.
> If there was a description somewhere in the doc set about the 4 
> different id spaces ( more? ), at a higher level, that would be really 
> great. That finally clicked for me when I was looking at pacmd/pactl and 
> seeing how that tool lists things, see the different IDs and what you 
> can do with them. It doesn't really fit in any of the higher level 
> sections, because it applies to both simple and async and others....
> I like PulseAudio quite a bit -- can I give back by trying to write up a 
> page?

By a page, do you mean a new page or section in the doxygen
documentation? Yes, documentation patches are very welcome!



More information about the pulseaudio-discuss mailing list