[Spice-devel] [vdagent-linux PATCH 0/2] client to guest audio sync
Victor Toso
victortoso at redhat.com
Wed Mar 18 10:16:10 PDT 2015
(depends on spice-protocol patch)
Implementing the volume/mute synchronization with pulseaudio.
The communication to pulseaudio is async and it is necessary to have a
mainloop running. As we don't have a glib-mainloop in vdagent, the
vdagentd-audio creates and runs a mainloop to each volume-sync call.
Another possibility is to have a threaded main loop. I thought it would
be worse to have a thread running only to sync the audio when the clients
connect. It may be good/useful in other cases.
Related to: https://bugzilla.redhat.com/show_bug.cgi?id=1012868
Victor Toso (2):
audio: add functions to set volume/mute with pulse
vdagentd: volume synchronization from client.
Makefile.am | 6 +-
configure.ac | 1 +
src/vdagentd-audio.c | 250 +++++++++++++++++++++++++++++++++++++++++++++++++++
src/vdagentd-audio.h | 27 ++++++
src/vdagentd.c | 18 ++++
5 files changed, 300 insertions(+), 2 deletions(-)
create mode 100644 src/vdagentd-audio.c
create mode 100644 src/vdagentd-audio.h
--
2.1.0
More information about the Spice-devel
mailing list