[pulseaudio-discuss] Volume algorithm

Tarantism tarantism at ntlworld.com
Sat Mar 5 05:45:56 PST 2011


On Sat, 2011-03-05 at 12:00 +0000, Colin Guthrie wrote:
> If you have a sink_input in your code, can you not simply use:
> pa_sink_input_set_volume() ?
I'll try that.

> I'm still not 100% sure what you're meaning tho'. If your system volume
> is totally busted, then pa_sink_input_set_volume() wont work by default
> as it will use flat volumes which ultimately cause the system volume to
> change if it's the only stream. If this is the case, then it's likely
> just a problem with your system volume using the correct ALSA kcontrols
> to make adjustments (e.g. I've noticed some problems recently with the
> "Speakers" element....)
> 
> In order to test this, you could disable flat-volumes in daemon.conf and
> then pa_sink_input_set_volume() should be 100% software and should work.
> If this is the case, please let us know and we can debug things further.
> 
> Does the system volume affect other sounds OK or is it totally busted?
System volume works fine with music player and games but I note that if
I run module-sine, that takes no notice of system volume either.

I'm running that with: pactl load-module module-sine

Do I need to specify a sink maybe?




More information about the pulseaudio-discuss mailing list