From 82966931f86d3d52732b21962a44a42cb6b14730 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Fri, 1 Jun 2018 20:05:45 -1000 Subject: [PATCH] Increase PulseAudio buffer size --- lib/audiodev/PulseAudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/audiodev/PulseAudio.cpp b/lib/audiodev/PulseAudio.cpp index 1da499b..80a3780 100644 --- a/lib/audiodev/PulseAudio.cpp +++ b/lib/audiodev/PulseAudio.cpp @@ -129,7 +129,7 @@ struct PulseAudioVoiceEngine : LinuxMidi pa_buffer_attr bufAttr; bufAttr.minreq = uint32_t(m_5msFrames * m_sampleSpec.channels * sizeof(float)); - bufAttr.maxlength = bufAttr.minreq * 12; + bufAttr.maxlength = bufAttr.minreq * 24; bufAttr.tlength = bufAttr.maxlength; bufAttr.prebuf = UINT32_MAX; bufAttr.fragsize = UINT32_MAX;