mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
for record streams fill in the latency as the fragsize
This commit is contained in:
parent
947a828943
commit
b9e96e00cf
1 changed files with 1 additions and 0 deletions
|
|
@ -278,6 +278,7 @@ static void context_state_callback(pa_context *c, void *userdata) {
|
|||
buffer_attr.minreq = (uint32_t) process_time;
|
||||
buffer_attr.maxlength = (uint32_t) -1;
|
||||
buffer_attr.prebuf = (uint32_t) -1;
|
||||
buffer_attr.fragsize = (uint32_t) latency;
|
||||
flags |= PA_STREAM_ADJUST_LATENCY;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue