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..
This commit is contained in:
Marc-André Lureau 2011-06-22 11:55:44 +02:00 committed by Alon Levy
parent e2d6494b26
commit ad3cc860a3

View File

@ -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>