From 7755f759aae60b279b9a18e3856ff89720105914 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 27 Jun 2008 00:34:17 +0200 Subject: use (uint32_t) -1 to signify default buffer_attr values instead of 0, to allow prebuf=0 --- src/tests/sync-playback.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/tests') diff --git a/src/tests/sync-playback.c b/src/tests/sync-playback.c index 7ab3a25c..7e364685 100644 --- a/src/tests/sync-playback.c +++ b/src/tests/sync-playback.c @@ -54,9 +54,10 @@ static const pa_sample_spec sample_spec = { static const pa_buffer_attr buffer_attr = { .maxlength = SAMPLE_HZ*sizeof(float)*NSTREAMS, /* exactly space for the entire play time */ - .tlength = 0, + .tlength = (uint32_t) -1, .prebuf = 0, /* Setting prebuf to 0 guarantees us the the streams will run synchronously, no matter what */ - .minreq = 0 + .minreq = (uint32_t) -1, + .fragsize = 0 }; static void nop_free_cb(void *p) {} -- cgit