]> code.delx.au - pulseaudio/blobdiff - src/tests/sync-playback.c
use (uint32_t) -1 to signify default buffer_attr values instead of 0, to allow prebuf=0
[pulseaudio] / src / tests / sync-playback.c
index 7ab3a25ce941133cb20731003e4654c98adafa86..7e364685825173269f5a96542964f35ebef7549c 100644 (file)
@@ -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) {}