--- src/tests/lo-latency-test.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tests/lo-latency-test.c b/src/tests/lo-latency-test.c index 2bb6678..c22affc 100644 --- a/src/tests/lo-latency-test.c +++ b/src/tests/lo-latency-test.c @@ -39,6 +39,9 @@ #include <pulse/pulseaudio.h> #include <pulse/mainloop.h> +/* for pa_make_realtime */ +#include <pulsecore/core-util.h> + #define SAMPLE_HZ 44100 #define CHANNELS 2 #define N_OUT (SAMPLE_HZ * 1) @@ -328,6 +331,8 @@ static void context_state_callback(pa_context *c, void *userdata) { case PA_CONTEXT_READY: { pa_buffer_attr buffer_attr; + pa_make_realtime(4); + /* Create playback stream */ buffer_attr.maxlength = -1; buffer_attr.tlength = SAMPLE_HZ * fs * PLAYBACK_LATENCY / 1000; -- 1.8.2.1