mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
use (uint32_t) -1 to signify default buffer_attr values instead of 0, to allow prebuf=0
This commit is contained in:
parent
2b764d4294
commit
7755f759aa
4 changed files with 37 additions and 18 deletions
|
|
@ -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) {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue