Re: [pulseaudio-discuss] The volume control ways in PulseAudio

2020-07-17 Thread Tanu Kaskinen
On Fri, 2020-07-17 at 10:57 +0800, Aaron Chou wrote: > Hi, all: > > I am the newer about PulseAudio. > When I have some time to learn it, I found that there are two ways in > volume control, which is software control and hardware control. > I can not understand these two ways. > The software way m

Re: [pulseaudio-discuss] The volume control ways in PulseAudio

2020-07-17 Thread Aaron Chou
Thanks for your email! On Fri, Jul 17, 2020 at 4:20 PM Tanu Kaskinen wrote: > On Fri, 2020-07-17 at 10:57 +0800, Aaron Chou wrote: > > Hi, all: > > > > I am the newer about PulseAudio. > > When I have some time to learn it, I found that there are two ways in > > volume control, which is software

Re: [pulseaudio-discuss] The volume control ways in PulseAudio

2020-07-17 Thread Sleep
I believe pa_cvolume_avg() is what you are looking for. https://freedesktop.org/software/pulseaudio/doxygen/volume_8h.html#a0f34f2c6d1b4738bf7f11ff06775dc1f https://github.com/holomorph/dwmstatus/blob/5bd96bd82f3879c9ee7d6ca88be2ea7e090b9380/pulse.c#L52 __

Re: [pulseaudio-discuss] The volume control ways in PulseAudio

2020-07-17 Thread Sleep
I read your post badly and thought you wanted to get the current volume for the device, to set the volume I believe you should use pa_cvolume_set(). https://freedesktop.org/software/pulseaudio/doxygen/volume_8h.html#a0777581d85a1d4bf9c831bdacaac51ac https://stackoverflow.com/questions/23291334/

Re: [pulseaudio-discuss] The volume control ways in PulseAudio

2020-07-17 Thread Tanu Kaskinen
On Fri, 2020-07-17 at 17:15 +0800, Aaron Chou wrote: > Thanks for your email! > > On Fri, Jul 17, 2020 at 4:20 PM Tanu Kaskinen wrote: > > > On Fri, 2020-07-17 at 10:57 +0800, Aaron Chou wrote: > > > Hi, all: > > > > > > I am the newer about PulseAudio. > > > When I have some time to learn it,