summaryrefslogtreecommitdiffstats
path: root/server/reds.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.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.h')
-rw-r--r--server/reds.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/reds.h b/server/reds.h
index f8e8d56c..59f13cec 100644
--- a/server/reds.h
+++ b/server/reds.h
@@ -164,4 +164,6 @@ void reds_on_client_seamless_migrate_complete(RedClient *client);
void reds_on_main_channel_migrate(MainChannelClient *mcc);
void reds_on_char_device_state_destroy(SpiceCharDeviceState *dev);
+void reds_set_client_mm_time_latency(RedClient *client, uint32_t latency);
+
#endif