summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-06-27 00:34:17 +0200
committerLennart Poettering <lennart@poettering.net>2008-06-27 00:34:17 +0200
commit7755f759aae60b279b9a18e3856ff89720105914 (patch)
tree660ce39074065a427c4499ef05ebcda0dab07c4c /src/tests
parent2b764d429425bfe30879bca2bca0cbe6c83965e0 (diff)
use (uint32_t) -1 to signify default buffer_attr values instead of 0, to allow prebuf=0
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/sync-playback.c5
1 files changed, 3 insertions, 2 deletions
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) {}