mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
remove global memblock statistic variables in favor of memblock_stat objects
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@137 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
81822a7519
commit
e75b65715b
32 changed files with 158 additions and 80 deletions
|
|
@ -179,11 +179,11 @@ int pa_sink_render(struct pa_sink*s, size_t length, struct pa_memchunk *result)
|
|||
volume = pa_volume_multiply(s->volume, info[0].volume);
|
||||
|
||||
if (volume != PA_VOLUME_NORM) {
|
||||
pa_memchunk_make_writable(result);
|
||||
pa_memchunk_make_writable(result, s->core->memblock_stat);
|
||||
pa_volume_memchunk(result, &s->sample_spec, volume);
|
||||
}
|
||||
} else {
|
||||
result->memblock = pa_memblock_new(length);
|
||||
result->memblock = pa_memblock_new(length, s->core->memblock_stat);
|
||||
assert(result->memblock);
|
||||
|
||||
result->length = l = pa_mix(info, n, result->memblock->data, length, &s->sample_spec, s->volume);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue