mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
optimization: Optimized pa_sink_render_full.
This is finally the latest version of the patch.
This commit is contained in:
parent
8adf1d5eea
commit
8eaea3aa64
1 changed files with 2 additions and 3 deletions
|
|
@ -1025,14 +1025,13 @@ void pa_sink_render_full(pa_sink *s, size_t length, pa_memchunk *result) {
|
|||
pa_memchunk chunk;
|
||||
size_t l, d;
|
||||
pa_memchunk_make_writable(result, length);
|
||||
result->length = length;
|
||||
|
||||
l = length - result->length;
|
||||
d = result->index + result->length;
|
||||
while (l > 0) {
|
||||
chunk = *result;
|
||||
chunk.index += d;
|
||||
chunk.length -= d - result->index;
|
||||
chunk.index = d;
|
||||
chunk.length = l;
|
||||
|
||||
pa_sink_render_into(s, &chunk);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue