[Spice-devel] [PATCH spice-common 2/2] add SPICE_MSG_PLAYBACK_LATENCY

Yonit Halperin yhalperi at redhat.com
Tue Feb 26 10:04:50 PST 2013


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.
---
 common/messages.h | 4 ++++
 spice-protocol    | 2 +-
 spice.proto       | 4 ++++
 3 files changed, 9 insertions(+), 1 deletion(-)

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
index 95c4e58..04e66a3 160000
--- a/spice-protocol
+++ b/spice-protocol
@@ -1 +1 @@
-Subproject commit 95c4e58868f6821112e9cd30385f0112eb6d5ea3
+Subproject commit 04e66a3ab8c805d3934f80cec3d14d1d749ec3bc
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 {
-- 
1.8.1



More information about the Spice-devel mailing list