diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-06-22 11:55:44 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2011-06-22 12:01:10 +0200 |
commit | f4d8de5bdfb4710ee330c6d64c61402c71df6e0b (patch) | |
tree | d18c941a063a4ebb1ba3adc399f762649c54d828 | |
parent | ec027d44b680f6da221dfe7a9040455dec1a3e1b (diff) |
protocol: add SPICE_{PLAYBACK,RECORD}_CAP_VOLUME caps
These changes the protocol the following way:
When the client announces it has SPICE_PLAYBACK_CAP_VOLUME, the server
can send PlaybackChannel.{volume,mute} messages to notify of volume
changes (respectively for RECORD).
If the client doesn't implement SPICE_PLAYBACK_CAP_VOLUME, the server can
handle the volume changes the way it prefers, for example, ignoring them or
applying volume effect on the server side etc..
-rw-r--r-- | spice/protocol.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spice/protocol.h b/spice/protocol.h index 26d964b..40027be 100644 --- a/spice/protocol.h +++ b/spice/protocol.h @@ -103,10 +103,12 @@ typedef struct SPICE_ATTR_PACKED SpiceSubMessageList { enum { SPICE_PLAYBACK_CAP_CELT_0_5_1, + SPICE_PLAYBACK_CAP_VOLUME, }; enum { SPICE_RECORD_CAP_CELT_0_5_1, + SPICE_RECORD_CAP_VOLUME, }; #include <spice/end-packed.h> |