summaryrefslogtreecommitdiffstats
path: root/server/reds-private.h
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2013-01-25 09:27:33 -0500
committerYonit Halperin <yhalperi@redhat.com>2013-04-22 16:30:55 -0400
commit073aeec569e2bee3feec8042986b8434db8afad3 (patch)
treeaa4abff930aed959f0981a7b3a197697d40832b5 /server/reds-private.h
parenta9087c4c8a1cf38c9dae331a9255f0dc6823e7b8 (diff)
downloadspice-073aeec569e2bee3feec8042986b8434db8afad3.tar.gz
spice-073aeec569e2bee3feec8042986b8434db8afad3.tar.xz
spice-073aeec569e2bee3feec8042986b8434db8afad3.zip
reds: support mm_time latency adjustments
When there is no audio playback, we set the mm_time in the client to be older than the one in the server by at least the requested latency (the delta is actually bigger, due to the network latency). When there is an audio playback, we adjust the mm_time in the client by adjusting the playback buffer using SPICE_MSG_PLAYBACK_LATENCY.
Diffstat (limited to 'server/reds-private.h')
-rw-r--r--server/reds-private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/reds-private.h b/server/reds-private.h
index 3db6565b..9358d27c 100644
--- a/server/reds-private.h
+++ b/server/reds-private.h
@@ -177,6 +177,8 @@ typedef struct RedsState {
int allow_multiple_clients;
RedsClientMonitorsConfig client_monitors_config;
+ int mm_timer_enabled;
+ uint32_t mm_time_latency;
} RedsState;
#endif