diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2013-01-09 16:11:29 -0500 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2013-04-22 11:34:49 -0400 |
commit | 30e84783cad7a5d4cd345367a267cafbfd0571af (patch) | |
tree | 387f07634fde7eccd40a588ae85b0d2e19546221 | |
parent | 7cdf8de00a573b6bdb4ec4582c87aa79b25796d3 (diff) |
add SPICE_MSG_PLAYBACK_LATENCY
SPICE_MSG_PLAYBACK_LATENCY is intended for adjusting the
latency of the audio playback. It is used for synchronizing
the audio and video playback.
The corresponding capability is SPICE_PLAYBACK_CAP_LATENCY.
-rw-r--r-- | common/messages.h | 4 | ||||
m--------- | spice-protocol | 0 | ||||
-rw-r--r-- | spice.proto | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/common/messages.h b/common/messages.h index 1d30b87..a8a0eee 100644 --- a/common/messages.h +++ b/common/messages.h @@ -469,6 +469,10 @@ typedef struct SpiceMsgPlaybackPacket { uint32_t data_size; } SpiceMsgPlaybackPacket, SpiceMsgcRecordPacket; +typedef struct SpiceMsgPlaybackLatency { + uint32_t latency_ms; +} SpiceMsgPlaybackLatency; + typedef struct SpiceMsgRecordStart { uint32_t channels; uint32_t format; //SPICE_AUDIO_FMT_? diff --git a/spice-protocol b/spice-protocol -Subproject a04cc68ba16c5ad8cf1f35b61c1464ef96bdfb0 +Subproject 4f868cc354b617f55a0983fd2b2eafcb223b577 diff --git a/spice.proto b/spice.proto index 97d1e1b..5eede6b 100644 --- a/spice.proto +++ b/spice.proto @@ -1102,6 +1102,10 @@ channel PlaybackChannel : BaseChannel { Empty stop; AudioVolume volume; AudioMute mute; + + message { + uint32 latency_ms; + } latency; }; channel RecordChannel : BaseChannel { |