mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
set fixed latencies at more places where appropriate
This commit is contained in:
parent
80e18c8da3
commit
991cb06134
6 changed files with 16 additions and 9 deletions
|
|
@ -1326,6 +1326,7 @@ int pa__init(pa_module*m) {
|
|||
pa_source_set_asyncmsgq(u->source, u->thread_mq.inq);
|
||||
pa_source_set_rtpoll(u->source, u->rtpoll);
|
||||
u->source->refresh_volume = TRUE;
|
||||
u->source->fixed_latency = pa_bytes_to_usec(u->in_hwbuf_size, &u->source->sample_spec);
|
||||
|
||||
if (use_mmap)
|
||||
u->in_mmap_memblocks = pa_xnew0(pa_memblock*, u->in_nfrags);
|
||||
|
|
@ -1387,6 +1388,7 @@ int pa__init(pa_module*m) {
|
|||
pa_sink_set_asyncmsgq(u->sink, u->thread_mq.inq);
|
||||
pa_sink_set_rtpoll(u->sink, u->rtpoll);
|
||||
u->sink->refresh_volume = TRUE;
|
||||
u->sink->fixed_latency = pa_bytes_to_usec(u->out_hwbuf_size, &u->sink->sample_spec);
|
||||
|
||||
pa_sink_set_max_request(u->sink, u->out_hwbuf_size);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue