[pulseaudio-discuss] "hello, world" volume control

Dalleau, Frederic frederic.dalleau at intel.com
Fri Apr 20 07:07:08 PDT 2012


Hi,

On Fri, Apr 20, 2012 at 10:04 AM, Diogo F. S. Ramos <diogofsr at gmail.com> wrote:
> I'm trying to write a very simple volume control for pulseaudio but I'm
> having a really hard time figuring out the API. Is there some kind of
> "hello, world"? Something that just mute a sink and exit would be great.

There is a sample called tests/gtk-test.c which creates a context and
a mainloop.
It could be a good starting point for your needs.
With a bit of gtk, you can add a button and call something like
 pa_context_set_sink_mute_by_index in the callback!

Regards,
Frédéric


More information about the pulseaudio-discuss mailing list