diff options
author | Chris Robinson <[email protected]> | 2018-03-14 03:21:26 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-03-14 03:21:26 -0700 |
commit | f65e83c3499ed26ee3dea4b0a1ca0282d47ae7cc (patch) | |
tree | b0cede2ef38e4c72e1492a61ff497a2e2622ed40 /Alc/mastering.c | |
parent | 942abab8f9779c81b65b4c8c676b59482adadc78 (diff) |
Avoid using pa_stream_begin_write with PulseAudio
It seems to actually have a negative performance impact when the system is
under load. Without having actual measurements for any potential benefits,
simply go with the recommended (and previous fallback) method of allocating
space for the write and passing the free method.
Ideally some kind of ring buffer could be used, so rather than constantly
allocating and freeing blocks of memory, it uses the same memory over again
with the callback marking each one as reusable. Unfortunately the callback
isn't given much information to work with, and the update size (minreq) can
potentially change during playback, which complicates things.
Diffstat (limited to 'Alc/mastering.c')
0 files changed, 0 insertions, 0 deletions