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

Commit

Permalink
pulseaudio fix
Browse files Browse the repository at this point in the history
  • Loading branch information
m5evt committed Mar 30, 2020
1 parent 70326cb commit 2d5491a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libcw/libcw_pa.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ static struct {


static const pa_sample_format_t CW_PA_SAMPLE_FORMAT = PA_SAMPLE_S16LE; /* Signed 16 bit, Little Endian */
static const int CW_PA_BUFFER_N_SAMPLES = 1024;
static const int CW_PA_BUFFER_N_SAMPLES = 256;



Expand Down 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(50 * 1000, ss);
ba->tlength = cw_pa.pa_usec_to_bytes(5000, ss);
ba->minreq = cw_pa.pa_usec_to_bytes(0, ss);
ba->maxlength = cw_pa.pa_usec_to_bytes(50 * 1000, ss);
ba->maxlength = cw_pa.pa_usec_to_bytes(5000, ss);
/* ba->prebuf = ; */ /* ? */
/* ba->fragsize = sizeof(uint32_t) -1; */ /* Not relevant to playback. */

Expand Down

0 comments on commit 2d5491a

Please sign in to comment.