spice-common/common
Marc-André Lureau 85a49d512a sndworker: add AudioVolume/AudioMute messages
These messages allow the guest to send the audio device volume to the
client. It uses an arbitrary scale of 16bits, which works good enough
for now.

Save VolumeState in {Playback,Record}State, so that we can send the
current volume on channel connection.

Note about future improvements:
- add exact dB support
- add client to guest volume change

Updated since v2:
- bumped record and playback interface minor version to allow
  conditional compilation
Updated since v1:
- sync record volume on connection too
2012-03-20 15:25:53 +01:00
..
win Add files i forgot to commit 2012-03-20 15:25:48 +01:00
.gitignore fresh start 2012-03-20 15:25:36 +01:00
bitops.h common: add WIN64 ifdef for spice_bit_find_msb (fix broken windows x64 build) 2012-03-20 15:25:53 +01:00
canvas_base.c common: use PANIC from spice_common.h 2012-03-20 15:25:52 +01:00
canvas_base.h common: add windows.h where required, make gdi_handlers static 2012-03-20 15:25:52 +01:00
canvas_utils.c common: use INLINE instead of inline 2012-03-20 15:25:53 +01:00
canvas_utils.h common: add windows.h where required, make gdi_handlers static 2012-03-20 15:25:52 +01:00
draw.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
gdi_canvas.c add #include <config.h> to all source files 2012-03-20 15:25:52 +01:00
gdi_canvas.h autotools: correctly build canvas-related code 2012-03-20 15:25:51 +01:00
gl_canvas.c add #include <config.h> to all source files 2012-03-20 15:25:52 +01:00
gl_canvas.h autotools: correctly build canvas-related code 2012-03-20 15:25:51 +01:00
gl_utils.h common: don't duplicate find_msb implementation 2012-03-20 15:25:52 +01:00
glc.c move WARN and WARN_ONCE to spice_common.h 2012-03-20 15:25:52 +01:00
glc.c.save fresh start 2012-03-20 15:25:36 +01:00
glc.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
lines.c common: use INLINE instead of inline 2012-03-20 15:25:53 +01:00
lines.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
lz_common.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
lz_compress_tmpl.c add #include <config.h> to all source files 2012-03-20 15:25:52 +01:00
lz_config.h common: use INLINE instead of inline 2012-03-20 15:25:53 +01:00
lz_decompress_tmpl.c add #include <config.h> to all source files 2012-03-20 15:25:52 +01:00
lz.c add #include <config.h> to all source files 2012-03-20 15:25:52 +01:00
lz.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
Makefile.am common: add ssl_verify.c common code 2012-03-20 15:25:53 +01:00
marshaller.c add #include <config.h> to all source files 2012-03-20 15:25:52 +01:00
marshaller.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
mem.c common: spice_memdup could accept NULL 2012-03-20 15:25:52 +01:00
mem.h common: mem.h add alloca definition 2012-03-20 15:25:52 +01:00
messages.h sndworker: add AudioVolume/AudioMute messages 2012-03-20 15:25:53 +01:00
mutex.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
ogl_ctx.c move WARN and WARN_ONCE to spice_common.h 2012-03-20 15:25:52 +01:00
ogl_ctx.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
pixman_utils.c common: use INLINE instead of inline 2012-03-20 15:25:53 +01:00
pixman_utils.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
quic_config.h common: use INLINE instead of inline 2012-03-20 15:25:53 +01:00
quic_family_tmpl.c add missing static 2012-03-20 15:25:52 +01:00
quic_rgb_tmpl.c add #include <config.h> to all source files 2012-03-20 15:25:52 +01:00
quic_tmpl.c add #include <config.h> to all source files 2012-03-20 15:25:52 +01:00
quic.c common: don't duplicate find_msb implementation 2012-03-20 15:25:52 +01:00
quic.h use foo(void) instead of foo() in prototypes 2012-03-20 15:25:51 +01:00
rect.h common: use INLINE instead of inline 2012-03-20 15:25:53 +01:00
region.c common,server: use ASSERT from spice_common.h 2012-03-20 15:25:52 +01:00
region.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
ring.h common: add ring_get_length() for debugging purposes 2012-03-20 15:25:52 +01:00
rop3.c move WARN and WARN_ONCE to spice_common.h 2012-03-20 15:25:52 +01:00
rop3.h use foo(void) instead of foo() in prototypes 2012-03-20 15:25:51 +01:00
spice_common.h move get_time_stamp to main_channel.c 2012-03-20 15:25:52 +01:00
ssl_verify.c common: fix ssl_verify windows build errors 2012-03-20 15:25:53 +01:00
ssl_verify.h common: fix ssl_verify windows build errors 2012-03-20 15:25:53 +01:00
sw_canvas.c add #include <config.h> to all source files 2012-03-20 15:25:52 +01:00
sw_canvas.h autotools: correctly build canvas-related code 2012-03-20 15:25:51 +01:00