Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Commit

Permalink
Update libcw_pa.c
Browse files Browse the repository at this point in the history
Reduce XRUNs
  • Loading branch information
m5evt committed Apr 9, 2020
1 parent 2d5491a commit c86785b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcw/libcw_pa.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ pa_simple *cw_pa_simple_new_internal(pa_sample_spec *ss, pa_buffer_attr *ba, con
}

// http://www.mail-archive.com/pulseaudio-tickets@mail.0pointer.de/msg03295.html
ba->tlength = cw_pa.pa_usec_to_bytes(5000, ss);
ba->tlength = cw_pa.pa_usec_to_bytes(10000, ss);
ba->minreq = cw_pa.pa_usec_to_bytes(0, ss);
ba->maxlength = cw_pa.pa_usec_to_bytes(5000, ss);
ba->maxlength = cw_pa.pa_usec_to_bytes(10000, ss);
/* ba->prebuf = ; */ /* ? */
/* ba->fragsize = sizeof(uint32_t) -1; */ /* Not relevant to playback. */

Expand Down

0 comments on commit c86785b

Please sign in to comment.