use (uint32_t) -1 to signify default buffer_attr values instead of 0, to allow prebuf=0

This commit is contained in:
Lennart Poettering 2008-06-27 00:34:17 +02:00
parent 2b764d4294
commit 7755f759aa
4 changed files with 37 additions and 18 deletions

View 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) {}