From 87e279082f5b25be662a3ae116fbb92b7dac6330 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 17 Apr 2019 05:51:40 -0700 Subject: Don't round the PulseAudio write size to the period multiple --- Alc/backends/pulseaudio.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Alc/backends/pulseaudio.cpp') diff --git a/Alc/backends/pulseaudio.cpp b/Alc/backends/pulseaudio.cpp index 3050c3a0..fad6e8b4 100644 --- a/Alc/backends/pulseaudio.cpp +++ b/Alc/backends/pulseaudio.cpp @@ -734,10 +734,6 @@ void PulsePlayback::streamWriteCallbackC(pa_stream *stream, size_t nbytes, void void PulsePlayback::streamWriteCallback(pa_stream *stream, size_t nbytes) { - /* Round down to the nearest period/minreq multiple if doing more than 1. */ - if(nbytes > mAttr.minreq) - nbytes -= nbytes%mAttr.minreq; - void *buf{pa_xmalloc(nbytes)}; aluMixData(mDevice, buf, nbytes/mFrameSize); -- cgit v1.2.3