Merge pull request #79 from glyptodon/pulse-latency

GUAC-427: Ensure socket is flushed when audio buffer is flushed.
This commit is contained in:
James Muehlner 2015-09-04 19:11:02 -07:00
commit ee9935bab7

View File

@ -27,6 +27,7 @@
#include <guacamole/audio.h>
#include <guacamole/client.h>
#include <guacamole/socket.h>
#include <pulse/pulseaudio.h>
/**
@ -86,6 +87,7 @@ static void __stream_read_callback(pa_stream* stream, size_t length,
GUAC_VNC_AUDIO_RATE,
GUAC_VNC_AUDIO_CHANNELS,
GUAC_VNC_AUDIO_BPS);
guac_socket_flush(client->socket);
}
}