diff options
author | Chris Robinson <[email protected]> | 2019-04-17 05:51:40 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-04-17 05:51:40 -0700 |
commit | 87e279082f5b25be662a3ae116fbb92b7dac6330 (patch) | |
tree | 2b689dbf951d78ac099f397fc4a6cfdfdaf1d04a /Alc/backends/pulseaudio.cpp | |
parent | 09dbc4c2dab8b0fa7ae6e657172005d94a0b76f8 (diff) |
Don't round the PulseAudio write size to the period multiple
Diffstat (limited to 'Alc/backends/pulseaudio.cpp')
-rw-r--r-- | Alc/backends/pulseaudio.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
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); |