mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
merge glitch-free branch back into trunk
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2445 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
91f092eadc
commit
045c1d602d
189 changed files with 12559 additions and 4959 deletions
|
|
@ -90,3 +90,23 @@ pa_memchunk *pa_memchunk_will_need(const pa_memchunk *c) {
|
|||
|
||||
return (pa_memchunk*) c;
|
||||
}
|
||||
|
||||
pa_memchunk* pa_memchunk_memcpy(pa_memchunk *dst, pa_memchunk *src) {
|
||||
void *p, *q;
|
||||
|
||||
pa_assert(dst);
|
||||
pa_assert(src);
|
||||
pa_assert(dst->length == src->length);
|
||||
|
||||
p = pa_memblock_acquire(dst->memblock);
|
||||
q = pa_memblock_acquire(src->memblock);
|
||||
|
||||
memmove((uint8_t*) p + dst->index,
|
||||
(uint8_t*) q + src->index,
|
||||
dst->length);
|
||||
|
||||
pa_memblock_release(dst->memblock);
|
||||
pa_memblock_release(src->memblock);
|
||||
|
||||
return dst;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue