Add ifdef around pulse-specific code.
This commit is contained in:
parent
73df645ce6
commit
c6a6c5b681
@ -42,7 +42,9 @@
|
|||||||
#include <guacamole/audio.h>
|
#include <guacamole/audio.h>
|
||||||
#include <rfb/rfbclient.h>
|
#include <rfb/rfbclient.h>
|
||||||
|
|
||||||
|
#ifdef ENABLE_PULSE
|
||||||
#include <pulse/pulseaudio.h>
|
#include <pulse/pulseaudio.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The maximum duration of a frame in milliseconds.
|
* The maximum duration of a frame in milliseconds.
|
||||||
@ -80,6 +82,7 @@ typedef struct vnc_guac_client_data {
|
|||||||
*/
|
*/
|
||||||
guac_audio_stream* audio;
|
guac_audio_stream* audio;
|
||||||
|
|
||||||
|
#ifdef ENABLE_PULSE
|
||||||
/**
|
/**
|
||||||
* The name of the PulseAudio server to connect to.
|
* The name of the PulseAudio server to connect to.
|
||||||
*/
|
*/
|
||||||
@ -89,6 +92,7 @@ typedef struct vnc_guac_client_data {
|
|||||||
* PulseAudio event loop.
|
* PulseAudio event loop.
|
||||||
*/
|
*/
|
||||||
pa_threaded_mainloop* pa_mainloop;
|
pa_threaded_mainloop* pa_mainloop;
|
||||||
|
#endif
|
||||||
|
|
||||||
} vnc_guac_client_data;
|
} vnc_guac_client_data;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user