From 3d2427d44146a13532e199d6d22a9a1bb32aaa9e Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 8 Aug 2013 18:56:13 -0700 Subject: [PATCH] Fix compilation of PulseAudio handlers. --- src/protocols/vnc/pa_handlers.c | 8 ++++---- src/protocols/vnc/pa_handlers.h | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/protocols/vnc/pa_handlers.c b/src/protocols/vnc/pa_handlers.c index b2117114..49affd4c 100644 --- a/src/protocols/vnc/pa_handlers.c +++ b/src/protocols/vnc/pa_handlers.c @@ -125,7 +125,7 @@ finish: void* guac_pa_send_audio(void* data) { audio_args* args = (audio_args*) data; - audio_stream* audio = args->audio; + guac_audio_stream* audio = args->audio; buffer* audio_buffer = args->audio_buffer; guac_client* client = audio->client; unsigned char* buffer_data = malloc(sizeof(unsigned char) * BUF_DATA_SIZE); @@ -135,13 +135,13 @@ void* guac_pa_send_audio(void* data) { while (client->state == GUAC_CLIENT_RUNNING) { - audio_stream_begin(audio, SAMPLE_RATE, CHANNELS, BPS); + guac_audio_stream_begin(audio, SAMPLE_RATE, CHANNELS, BPS); counter = 0; while (counter < BUF_LENGTH) { buffer_remove(audio_buffer, (void *) buffer_data); - audio_stream_write_pcm(audio, buffer_data, BUF_DATA_SIZE); + guac_audio_stream_write_pcm(audio, buffer_data, BUF_DATA_SIZE); counter++; if (client->state != GUAC_CLIENT_RUNNING) @@ -149,7 +149,7 @@ void* guac_pa_send_audio(void* data) { } - audio_stream_end(audio); + guac_audio_stream_end(audio); guac_pa_sleep(SEND_INTERVAL); } diff --git a/src/protocols/vnc/pa_handlers.h b/src/protocols/vnc/pa_handlers.h index c8a6be46..8e2c87dc 100644 --- a/src/protocols/vnc/pa_handlers.h +++ b/src/protocols/vnc/pa_handlers.h @@ -40,6 +40,8 @@ #ifndef __GUAC_VNC_PA_HANDLERS_H #define __GUAC_VNC_PA_HANDLERS_H +#include + /** * The size of each data element in the audio buffer. */ @@ -75,7 +77,7 @@ * Arguments for the read and send threads */ typedef struct audio_args { - audio_stream* audio; + guac_audio_stream* audio; buffer* audio_buffer; } audio_args;