PA_ERR_ACCESS problems.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



'Twas brillig, and Anders Gnistrup at 07/06/11 08:05 did gyre and gimble:
> - Setting the volume on the sink using pa_context_set_sink_volume_by_index. This method works, but I wont to set the volume pr. stream, not pr. device.
> - Setting the volume using a similar method used in the application pavucontrol. I have tried this with little success.

Use pa_context_set_sink_input_volume() and pa_context_set_sink_input_mute()

This is what pavucontrol does. It think you're misreading the bit where
it uses ext stream restore stuff which deals with the saved database of
volumes which you generally shouldn't have to worry about.

Col


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mageia Contributor [http://www.mageia.org/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux