Don't round the PulseAudio write size to the period multiple

This commit is contained in:
Chris Robinson
2019-04-17 05:51:40 -07:00
parent 09dbc4c2da
commit 87e279082f
-4
View File
@@ -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);