mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -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
|
|
@ -278,6 +278,8 @@ static void context_state_callback(pa_context *c, void *userdata) {
|
|||
memset(&buffer_attr, 0, sizeof(buffer_attr));
|
||||
buffer_attr.tlength = latency;
|
||||
buffer_attr.minreq = process_time;
|
||||
buffer_attr.maxlength = (uint32_t) -1;
|
||||
buffer_attr.prebuf = (uint32_t) -1;
|
||||
flags |= PA_STREAM_ADJUST_LATENCY;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue